Searched refs:normalize_or_zero (Results 1 – 16 of 16) sorted by relevance
/external/rust/crates/glam/tests/support/ |
D | macros.rs | 126 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/ |
D | vec3.rs | 84 v.normalize_or_zero() in vec3_normalize_or_zero()
|
/external/rust/crates/glam/src/f32/coresimd/ |
D | vec4.rs | 389 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec3a.rs | 415 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/external/rust/crates/glam/src/f32/wasm32/ |
D | vec4.rs | 409 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec3a.rs | 427 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/external/rust/crates/glam/src/f32/ |
D | vec2.rs | 385 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec3.rs | 430 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/external/rust/crates/glam/src/f64/ |
D | dvec2.rs | 385 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | dvec3.rs | 430 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | dvec4.rs | 462 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/external/rust/crates/glam/src/f32/sse2/ |
D | vec4.rs | 427 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec3a.rs | 452 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/external/rust/crates/glam/src/f32/scalar/ |
D | vec3a.rs | 436 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec4.rs | 470 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/external/rust/crates/glam/ |
D | CHANGELOG.md | 468 * Added `try_normalize()` and `normalize_or_zero()` for all real vector types.
|