[−][src]Struct glam::Vec3AMask
A 3-dimensional vector mask.
This type is typically created by comparison methods on Vec3A. It is essentially a vector of
three boolean values.
Implementations
impl Vec3AMask[src]
pub fn new(x: bool, y: bool, z: bool) -> Self[src]
Creates a new Vec3AMask.
pub fn bitmask(&self) -> u32[src]
Returns a bitmask with the lowest three bits set from the elements of self.
A true element results in a 1 bit and a false element in a 0 bit. Element x goes
into the first lowest bit, element y into the second, etc.
pub fn any(&self) -> bool[src]
Returns true if any of the elements are true, false otherwise.
In other words: x || y || z.
pub fn all(&self) -> bool[src]
Returns true if all the elements are true, false otherwise.
In other words: x && y && z.
pub fn select(self, if_true: Vec3A, if_false: Vec3A) -> Vec3A[src]
Creates a new Vec3A from the elements in if_true and if_false, selecting which to use
for each element of self.
A true element in the mask uses the corresponding element from if_true, and false uses
the element from if_false.
Trait Implementations
impl AsRef<[u32; 3]> for Vec3AMask[src]
impl BitAnd<Vec3AMask> for Vec3AMask[src]
type Output = Self
The resulting type after applying the & operator.
pub fn bitand(self, other: Self) -> Self[src]
impl BitAndAssign<Vec3AMask> for Vec3AMask[src]
pub fn bitand_assign(&mut self, other: Self)[src]
impl BitOr<Vec3AMask> for Vec3AMask[src]
type Output = Self
The resulting type after applying the | operator.
pub fn bitor(self, other: Self) -> Self[src]
impl BitOrAssign<Vec3AMask> for Vec3AMask[src]
pub fn bitor_assign(&mut self, other: Self)[src]
impl Clone for Vec3AMask[src]
impl Copy for Vec3AMask[src]
impl Debug for Vec3AMask[src]
impl Default for Vec3AMask[src]
impl Display for Vec3AMask[src]
impl Eq for Vec3AMask[src]
impl From<Vec3AMask> for [u32; 3][src]
impl From<Vec3AMask> for __m128[src]
impl Hash for Vec3AMask[src]
pub fn hash<H: Hasher>(&self, state: &mut H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Not for Vec3AMask[src]
impl Ord for Vec3AMask[src]
pub fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Vec3AMask> for Vec3AMask[src]
pub fn eq(&self, other: &Self) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialOrd<Vec3AMask> for Vec3AMask[src]
Auto Trait Implementations
impl RefUnwindSafe for Vec3AMask[src]
impl Send for Vec3AMask[src]
impl Sync for Vec3AMask[src]
impl Unpin for Vec3AMask[src]
impl UnwindSafe for Vec3AMask[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,