UVec3

UVec3

  • x : u32
  • y : u32
  • z : u32

Description

No Documentation 🚧

Functions

FunctionSummary
add(_self, rhs)No Documentation 🚧
add-1(arg0, arg1)No Documentation 🚧
add-2(arg0, arg1)No Documentation 🚧
as_dvec3(_self) Casts all elements of `self` to `f64`.
as_i64vec3(_self) Casts all elements of `self` to `i64`.
as_ivec3(_self) Casts all elements of `self` to `i32`.
as_u64vec3(_self) Casts all elements of `self` to `u64`.
as_vec3(_self) Casts all elements of `self` to `f32`.
as_vec3a(_self) Casts all elements of `self` to `f32`.
assert_receiver_is_total_eq(_self)No Documentation 🚧
clamp(_self, min, max) Component-wise clamping of values, similar to [`u32::clamp`]. Each element in `min` must be less-or-equal to the corresponding element in `max`. # Panics Will panic if `min` is greater than `max` when `glam_assert` is enabled.
clone(_self)No Documentation 🚧
cmpeq(_self, rhs) Returns a vector mask containing the result of a `==` comparison for each element of `self` and `rhs`
cmpge(_self, rhs) Returns a vector mask containing the result of a `>=` comparison for each element of `self` and `rhs`
cmpgt(_self, rhs) Returns a vector mask containing the result of a `>` comparison for each element of `self` and `rhs`
cmple(_self, rhs) Returns a vector mask containing the result of a `<=` comparison for each element of `self` and `rhs`
cmplt(_self, rhs) Returns a vector mask containing the result of a `<` comparison for each element of `self` and `rhs`
cmpne(_self, rhs) Returns a vector mask containing the result of a `!=` comparison for each element of `self` and `rhs`
cross(_self, rhs) Computes the cross product of `self` and `rhs`.
div(_self, rhs)No Documentation 🚧
div-1(arg0, arg1)No Documentation 🚧
div-2(arg0, arg1)No Documentation 🚧
dot(_self, rhs) Computes the dot product of `self` and `rhs`.
dot_into_vec(_self, rhs) Returns a vector where every component is the dot product of `self` and `rhs`.
element_product(_self) Returns the product of all elements of `self`. In other words, this computes `self.x * self.y * ..
element_sum(_self) Returns the sum of all elements of `self`. In other words, this computes `self.x + self.y + ..`.
eq(_self, other)No Documentation 🚧
extend(_self, w) Creates a 4D vector from `self` and the given `w` value.
from_array(a) Creates a new vector from an array.
length_squared(_self) Computes the squared length of `self`.
max(_self, rhs) Returns a vector containing the maximum values for each element of `self` and `rhs`. In other word
max_element(_self) Returns the horizontal maximum of `self`. In other words this computes `max(x, y, ..)`.
min(_self, rhs) Returns a vector containing the minimum values for each element of `self` and `rhs`. In other word
min_element(_self) Returns the horizontal minimum of `self`. In other words this computes `min(x, y, ..)`.
mul(_self, rhs)No Documentation 🚧
mul-1(arg0, arg1)No Documentation 🚧
mul-2(arg0, arg1)No Documentation 🚧
new(x, y, z) Creates a new vector.
rem(_self, rhs)No Documentation 🚧
rem-1(arg0, arg1)No Documentation 🚧
rem-2(arg0, arg1)No Documentation 🚧
saturating_add(_self, rhs) Returns a vector containing the saturating addition of `self` and `rhs`. In other words this compu
saturating_add_signed(_self, rhs) Returns a vector containing the saturating addition of `self` and signed vector `rhs`. In other wo
saturating_div(_self, rhs) Returns a vector containing the saturating division of `self` and `rhs`. In other words this compu
saturating_mul(_self, rhs) Returns a vector containing the saturating multiplication of `self` and `rhs`. In other words this
saturating_sub(_self, rhs) Returns a vector containing the saturating subtraction of `self` and `rhs`. In other words this co
select(mask, if_true, if_false) Creates a vector from the elements in `if_true` and `if_false`, selecting which to use for each el
splat(v) Creates a vector with all elements set to `v`.
sub(_self, rhs)No Documentation 🚧
sub-1(arg0, arg1)No Documentation 🚧
sub-2(arg0, arg1)No Documentation 🚧
to_array(_self) `[x, y, z]`
truncate(_self) Creates a 2D vector from the `x` and `y` elements of `self`, discarding `z`. Truncation may also b
with_x(_self, x) Creates a 3D vector from `self` with the given value of `x`.
with_y(_self, y) Creates a 3D vector from `self` with the given value of `y`.
with_z(_self, z) Creates a 3D vector from `self` with the given value of `z`.
wrapping_add(_self, rhs) Returns a vector containing the wrapping addition of `self` and `rhs`. In other words this compute
wrapping_add_signed(_self, rhs) Returns a vector containing the wrapping addition of `self` and signed vector `rhs`. In other word
wrapping_div(_self, rhs) Returns a vector containing the wrapping division of `self` and `rhs`. In other words this compute
wrapping_mul(_self, rhs) Returns a vector containing the wrapping multiplication of `self` and `rhs`. In other words this c
wrapping_sub(_self, rhs) Returns a vector containing the wrapping subtraction of `self` and `rhs`. In other words this comp