Skip to content

Commit

Permalink
Forgot to update the README
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaticWyrm467 committed Jan 19, 2024
1 parent db87a1e commit 36ff461
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ fn main() {
_ => println!("Other")
}

let argmax_axis: Axis2 = Vec2(1, 0).argmax();
let test_vec: Vec2<i32> = Vec2(1, 0);
let argmax_axis: Axis2 = test_vec.argmax();
let argmax_val: i32 = test_vec.get(argmax_axis);

assert_eq!(argmax_axis, Axis2::X);
assert_eq!(argmax_val, 1);

// Vectors support all primitive numerical types.
let vec_i32: Vec2<i32> = Vec2::ones_like();
Expand Down

0 comments on commit 36ff461

Please sign in to comment.