Type Alias Bool2

Source
pub type Bool2 = Vec2<bool>;
Expand description

Bool2 mask.

Aliased Type§

#[repr(C)]
pub struct Bool2 { pub x: bool, pub y: bool, }

Fields§

§x: bool§y: bool

Implementations§

Source§

impl Bool2

Source

pub const fn any(self) -> bool

Returns true if any of the components are true.

Source

pub const fn all(self) -> bool

Returns true if all the components are true.

Source

pub const fn none(self) -> bool

Returns true if none of the components are true.

Source

pub fn select<T>(self, lhs: Vec2<T>, rhs: Vec2<T>) -> Vec2<T>

Combines two vectors based on the bools, selecting components from the left-hand side if true and right-hand side if false.