You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bitmasks are cool and would be even more useful if they could be multiplied with a vector of same dimension. This could be done either if the BVecN could be converted into a vector of 0.0:s and 1.0:s, or if std::ops::Mul was implemented for the permutations of BVec and all other Vec
let a = vec3a(0.1, -0.5,10.0);let mask = a.cmple(Vec3A::splat(0.1);let b = a * mask;// NOTE: not implemented atmassert!(b == vec3a(0.1, -0.5, 0.0);
I feel like this could be done for all vecs of same dimensions?
BVec3A * Vec3A, BVec3 * Vec3, BVec3 * IVec3, BVec3 * I16Vec3 and so on..
The text was updated successfully, but these errors were encountered:
Possibly .into() will work in these cases as well if the compiler can work out what type conversion you are after.
As for supporting arithmetic operations on vector masks for other vector types, I don't intend to add that for the reasons given above, that is rust itself doesn't support it.
Bitmasks are cool and would be even more useful if they could be multiplied with a vector of same dimension. This could be done either if the
BVecN
could be converted into a vector of 0.0:s and 1.0:s, or ifstd::ops::Mul
was implemented for the permutations of BVec and all other VecI feel like this could be done for all vecs of same dimensions?
BVec3A * Vec3A
,BVec3 * Vec3
,BVec3 * IVec3
,BVec3 * I16Vec3
and so on..The text was updated successfully, but these errors were encountered: