abs(_self) | Returns a vector containing the absolute value of each element of `self`. |
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_u64vec3(_self) | Casts all elements of `self` to `u64`. |
as_uvec3(_self) | Casts all elements of `self` to `u32`. |
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 [`i32::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`. |
distance_squared(_self, rhs) | Compute the squared euclidean distance between two points in space. |
div(_self, rhs) | No Documentation 🚧 |
div-1(arg0, arg1) | No Documentation 🚧 |
div-2(arg0, arg1) | No Documentation 🚧 |
div_euclid(_self, rhs) | Returns the element-wise quotient of [Euclidean division] of `self` by `rhs`. # Panics This function will panic if any `rhs` element is 0 or the division results in overflow. |
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. |
is_negative_bitmask(_self) | Returns a bitmask with the lowest 3 bits set to the sign bits from the elements of `self`. A negat |
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 🚧 |
neg(_self) | 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 🚧 |
rem_euclid(_self, rhs) | Returns the element-wise remainder of [Euclidean division] of `self` by `rhs`. # Panics This function will panic if any `rhs` element is 0 or the division results in overflow. [Euclidean division] |
saturating_add(_self, rhs) | Returns a vector containing the saturating addition of `self` and `rhs`. In other words this compu |
saturating_add_unsigned(_self, rhs) | In other words this computes `[self.x.saturating_add_unsigned(rhs.x), self.y.saturating_add_unsigned(rhs.y), ..]`. |
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 |
saturating_sub_unsigned(_self, rhs) | Returns a vector containing the saturating subtraction of `self` and unsigned vector `rhs`. In oth |
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 |
signum(_self) | Returns a vector with elements representing the sign of `self`. - `0` if the number is zero - `1` |
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_unsigned(_self, rhs) | Returns a vector containing the wrapping addition of `self` and unsigned vector `rhs`. In other wo |
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 |
wrapping_sub_unsigned(_self, rhs) | Returns a vector containing the wrapping subtraction of `self` and unsigned vector `rhs`. In other |