Home
last modified time | relevance | path

Searched refs:normalize_or_zero (Results 1 – 16 of 16) sorted by relevance

/external/rust/crates/glam/tests/support/
Dmacros.rs126 from_x_y(-42.0, 0.0).normalize_or_zero(),
130 from_x_y(MAX.sqrt(), 0.0).normalize_or_zero(),
135 assert_eq!(from_x_y(0.0, 0.0).normalize_or_zero(), $vec::ZERO);
136 assert_eq!(from_x_y(MIN_POSITIVE, 0.0).normalize_or_zero(), $vec::ZERO);
139 assert_eq!(from_x_y(INFINITY, 0.0).normalize_or_zero(), $vec::ZERO);
140 assert_eq!(from_x_y(NAN, 0.0).normalize_or_zero(), $vec::ZERO);
143 assert_eq!(from_x_y(MAX, 0.0).normalize_or_zero(), $vec::ZERO);
144 assert_eq!(from_x_y(MAX, MAX).normalize_or_zero(), $vec::ZERO);
/external/rust/crates/glam/benches/
Dvec3.rs84 v.normalize_or_zero() in vec3_normalize_or_zero()
/external/rust/crates/glam/src/f32/coresimd/
Dvec4.rs389 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
Dvec3a.rs415 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
/external/rust/crates/glam/src/f32/wasm32/
Dvec4.rs409 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
Dvec3a.rs427 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
/external/rust/crates/glam/src/f32/
Dvec2.rs385 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
Dvec3.rs430 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
/external/rust/crates/glam/src/f64/
Ddvec2.rs385 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
Ddvec3.rs430 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
Ddvec4.rs462 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
/external/rust/crates/glam/src/f32/sse2/
Dvec4.rs427 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
Dvec3a.rs452 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
/external/rust/crates/glam/src/f32/scalar/
Dvec3a.rs436 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
Dvec4.rs470 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
/external/rust/crates/glam/
DCHANGELOG.md468 * Added `try_normalize()` and `normalize_or_zero()` for all real vector types.