Skip to content

Commit

Permalink
Fixup vec sum
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlstrom committed Aug 26, 2024
1 parent 55039f5 commit a7401f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/math/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ mod tests {
assert!(0.0 <= v.y() && v.y() < 2.0);
assert!(-1.0 <= v.z() && v.z() < 3.0);
})
.fold(splat(0.0), Add::add)
.sum::<Vec3>()
/ COUNT as f32;

assert_eq!(mean, vec3(-0.46046025, 1.0209353, 0.9742225));
Expand Down

0 comments on commit a7401f2

Please sign in to comment.