Struct glam::u32::UVec3 [−][src]
#[repr(transparent)]pub struct UVec3(_);
Expand description
A 3-dimensional vector.
Implementations
impl UVec3
[src]
impl UVec3
[src]pub fn truncate(self) -> UVec2
[src]
pub fn truncate(self) -> UVec2
[src]Creates a Vec2
from the x
and y
elements of self
, discarding z
.
Truncation may also be performed by using self.xy()
or Vec2::from()
.
pub fn select(mask: BVec3, if_true: UVec3, if_false: UVec3) -> UVec3
[src]
pub fn select(mask: BVec3, if_true: UVec3, if_false: UVec3) -> UVec3
[src]Creates a vector 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
.
pub fn min(self, other: Self) -> Self
[src]
pub fn min(self, other: Self) -> Self
[src]Returns a vector containing the mininum values for each element of self
and other
.
In other words this computes [self.x.max(other.x), self.y.max(other.y), ..]
.
pub fn max(self, other: Self) -> Self
[src]
pub fn max(self, other: Self) -> Self
[src]Returns a vector containing the maximum values for each element of self
and other
.
In other words this computes [self.x.max(other.x), self.y.max(other.y), ..]
.
pub fn clamp(self, min: Self, max: Self) -> Self
[src]
pub fn clamp(self, min: Self, max: Self) -> Self
[src]Component-wise clamping of values, similar to f32::clamp
.
Each element in min
must be less-or-equal to the corresponing element in max
.
If the glam-assert
feature is enabled, the function will panic if the contract is not
met, otherwise the behavior is undefined.
pub fn min_element(self) -> u32
[src]
pub fn min_element(self) -> u32
[src]Returns the horizontal minimum of self
.
In other words this computes min(x, y, ..)
.
pub fn max_element(self) -> u32
[src]
pub fn max_element(self) -> u32
[src]Returns the horizontal maximum of self
.
In other words this computes max(x, y, ..)
.
pub fn cmpeq(self, other: Self) -> BVec3
[src]
pub fn cmpeq(self, other: Self) -> BVec3
[src]Returns a vector mask containing the result of a ==
comparison for each element of
self
and other
.
In other words, this computes [self.x == other.x, self.y == other.y, ..]
for all
elements.
pub fn cmpne(self, other: Self) -> BVec3
[src]
pub fn cmpne(self, other: Self) -> BVec3
[src]Returns a vector mask containing the result of a !=
comparison for each element of
self
and other
.
In other words this computes [self.x != other.x, self.y != other.y, ..]
for all
elements.
pub fn cmpge(self, other: Self) -> BVec3
[src]
pub fn cmpge(self, other: Self) -> BVec3
[src]Returns a vector mask containing the result of a >=
comparison for each element of
self
and other
.
In other words this computes [self.x >= other.x, self.y >= other.y, ..]
for all
elements.
pub fn cmpgt(self, other: Self) -> BVec3
[src]
pub fn cmpgt(self, other: Self) -> BVec3
[src]Returns a vector mask containing the result of a >
comparison for each element of
self
and other
.
In other words this computes [self.x > other.x, self.y > other.y, ..]
for all
elements.
pub fn cmple(self, other: Self) -> BVec3
[src]
pub fn cmple(self, other: Self) -> BVec3
[src]Returns a vector mask containing the result of a <=
comparison for each element of
self
and other
.
In other words this computes [self.x <= other.x, self.y <= other.y, ..]
for all
elements.
pub fn cmplt(self, other: Self) -> BVec3
[src]
pub fn cmplt(self, other: Self) -> BVec3
[src]Returns a vector mask containing the result of a <
comparison for each element of
self
and other
.
In other words this computes [self.x < other.x, self.y < other.y, ..]
for all
elements.
pub fn from_slice_unaligned(slice: &[u32]) -> Self
[src]
Please use from_slice()
instead
pub fn from_slice(slice: &[u32]) -> Self
[src]
pub fn from_slice(slice: &[u32]) -> Self
[src]Creates a vector from the first N values in slice
.
Panics
Panics if slice
is less than N elements long.
pub fn write_to_slice_unaligned(self, slice: &mut [u32])
[src]
Please use write_to_slice()
instead
Trait Implementations
impl AddAssign<UVec3> for UVec3
[src]
impl AddAssign<UVec3> for UVec3
[src]fn add_assign(&mut self, other: Self)
[src]
fn add_assign(&mut self, other: Self)
[src]Performs the +=
operation. Read more
impl DivAssign<UVec3> for UVec3
[src]
impl DivAssign<UVec3> for UVec3
[src]fn div_assign(&mut self, other: UVec3)
[src]
fn div_assign(&mut self, other: UVec3)
[src]Performs the /=
operation. Read more
impl DivAssign<u32> for UVec3
[src]
impl DivAssign<u32> for UVec3
[src]fn div_assign(&mut self, other: u32)
[src]
fn div_assign(&mut self, other: u32)
[src]Performs the /=
operation. Read more
impl MulAssign<UVec3> for UVec3
[src]
impl MulAssign<UVec3> for UVec3
[src]fn mul_assign(&mut self, other: UVec3)
[src]
fn mul_assign(&mut self, other: UVec3)
[src]Performs the *=
operation. Read more
impl MulAssign<u32> for UVec3
[src]
impl MulAssign<u32> for UVec3
[src]fn mul_assign(&mut self, other: u32)
[src]
fn mul_assign(&mut self, other: u32)
[src]Performs the *=
operation. Read more
impl SubAssign<UVec3> for UVec3
[src]
impl SubAssign<UVec3> for UVec3
[src]fn sub_assign(&mut self, other: UVec3)
[src]
fn sub_assign(&mut self, other: UVec3)
[src]Performs the -=
operation. Read more
impl Vec3Swizzles for UVec3
[src]
impl Vec3Swizzles for UVec3
[src]type Vec2 = UVec2
type Vec4 = UVec4
fn xxxx(self) -> UVec4
[src]
fn xxxy(self) -> UVec4
[src]
fn xxxz(self) -> UVec4
[src]
fn xxyx(self) -> UVec4
[src]
fn xxyy(self) -> UVec4
[src]
fn xxyz(self) -> UVec4
[src]
fn xxzx(self) -> UVec4
[src]
fn xxzy(self) -> UVec4
[src]
fn xxzz(self) -> UVec4
[src]
fn xyxx(self) -> UVec4
[src]
fn xyxy(self) -> UVec4
[src]
fn xyxz(self) -> UVec4
[src]
fn xyyx(self) -> UVec4
[src]
fn xyyy(self) -> UVec4
[src]
fn xyyz(self) -> UVec4
[src]
fn xyzx(self) -> UVec4
[src]
fn xyzy(self) -> UVec4
[src]
fn xyzz(self) -> UVec4
[src]
fn xzxx(self) -> UVec4
[src]
fn xzxy(self) -> UVec4
[src]
fn xzxz(self) -> UVec4
[src]
fn xzyx(self) -> UVec4
[src]
fn xzyy(self) -> UVec4
[src]
fn xzyz(self) -> UVec4
[src]
fn xzzx(self) -> UVec4
[src]
fn xzzy(self) -> UVec4
[src]
fn xzzz(self) -> UVec4
[src]
fn yxxx(self) -> UVec4
[src]
fn yxxy(self) -> UVec4
[src]
fn yxxz(self) -> UVec4
[src]
fn yxyx(self) -> UVec4
[src]
fn yxyy(self) -> UVec4
[src]
fn yxyz(self) -> UVec4
[src]
fn yxzx(self) -> UVec4
[src]
fn yxzy(self) -> UVec4
[src]
fn yxzz(self) -> UVec4
[src]
fn yyxx(self) -> UVec4
[src]
fn yyxy(self) -> UVec4
[src]
fn yyxz(self) -> UVec4
[src]
fn yyyx(self) -> UVec4
[src]
fn yyyy(self) -> UVec4
[src]
fn yyyz(self) -> UVec4
[src]
fn yyzx(self) -> UVec4
[src]
fn yyzy(self) -> UVec4
[src]
fn yyzz(self) -> UVec4
[src]
fn yzxx(self) -> UVec4
[src]
fn yzxy(self) -> UVec4
[src]
fn yzxz(self) -> UVec4
[src]
fn yzyx(self) -> UVec4
[src]
fn yzyy(self) -> UVec4
[src]
fn yzyz(self) -> UVec4
[src]
fn yzzx(self) -> UVec4
[src]
fn yzzy(self) -> UVec4
[src]
fn yzzz(self) -> UVec4
[src]
fn zxxx(self) -> UVec4
[src]
fn zxxy(self) -> UVec4
[src]
fn zxxz(self) -> UVec4
[src]
fn zxyx(self) -> UVec4
[src]
fn zxyy(self) -> UVec4
[src]
fn zxyz(self) -> UVec4
[src]
fn zxzx(self) -> UVec4
[src]
fn zxzy(self) -> UVec4
[src]
fn zxzz(self) -> UVec4
[src]
fn zyxx(self) -> UVec4
[src]
fn zyxy(self) -> UVec4
[src]
fn zyxz(self) -> UVec4
[src]
fn zyyx(self) -> UVec4
[src]
fn zyyy(self) -> UVec4
[src]
fn zyyz(self) -> UVec4
[src]
fn zyzx(self) -> UVec4
[src]
fn zyzy(self) -> UVec4
[src]
fn zyzz(self) -> UVec4
[src]
fn zzxx(self) -> UVec4
[src]
fn zzxy(self) -> UVec4
[src]
fn zzxz(self) -> UVec4
[src]
fn zzyx(self) -> UVec4
[src]
fn zzyy(self) -> UVec4
[src]
fn zzyz(self) -> UVec4
[src]
fn zzzx(self) -> UVec4
[src]
fn zzzy(self) -> UVec4
[src]
fn zzzz(self) -> UVec4
[src]
fn xxx(self) -> Self
[src]
fn xxy(self) -> Self
[src]
fn xxz(self) -> Self
[src]
fn xyx(self) -> Self
[src]
fn xyy(self) -> Self
[src]
fn xzx(self) -> Self
[src]
fn xzy(self) -> Self
[src]
fn xzz(self) -> Self
[src]
fn yxx(self) -> Self
[src]
fn yxy(self) -> Self
[src]
fn yxz(self) -> Self
[src]
fn yyx(self) -> Self
[src]
fn yyy(self) -> Self
[src]
fn yyz(self) -> Self
[src]
fn yzx(self) -> Self
[src]
fn yzy(self) -> Self
[src]
fn yzz(self) -> Self
[src]
fn zxx(self) -> Self
[src]
fn zxy(self) -> Self
[src]
fn zxz(self) -> Self
[src]
fn zyx(self) -> Self
[src]
fn zyy(self) -> Self
[src]
fn zyz(self) -> Self
[src]
fn zzx(self) -> Self
[src]
fn zzy(self) -> Self
[src]
fn zzz(self) -> Self
[src]
fn xx(self) -> UVec2
[src]
fn xy(self) -> UVec2
[src]
fn xz(self) -> UVec2
[src]
fn yx(self) -> UVec2
[src]
fn yy(self) -> UVec2
[src]
fn yz(self) -> UVec2
[src]
fn zx(self) -> UVec2
[src]
fn zy(self) -> UVec2
[src]
fn zz(self) -> UVec2
[src]
fn xyz(self) -> Self
[src]
impl Copy for UVec3
[src]
impl Eq for UVec3
[src]
Auto Trait Implementations
impl RefUnwindSafe for UVec3
impl Send for UVec3
impl Sync for UVec3
impl Unpin for UVec3
impl UnwindSafe for UVec3
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more