Searched refs:normalize_or_zero (Results 1 – 16 of 16) sorted by relevance
/aosp_15_r20/external/rust/android-crates-io/crates/glam/tests/support/ |
D | macros.rs | 142 from_x_y(-42.0, 0.0).normalize_or_zero(), 146 from_x_y(MAX.sqrt(), 0.0).normalize_or_zero(), 151 assert_eq!(from_x_y(0.0, 0.0).normalize_or_zero(), $vec::ZERO); 152 assert_eq!(from_x_y(MIN_POSITIVE, 0.0).normalize_or_zero(), $vec::ZERO); 155 assert_eq!(from_x_y(INFINITY, 0.0).normalize_or_zero(), $vec::ZERO); 156 assert_eq!(from_x_y(NAN, 0.0).normalize_or_zero(), $vec::ZERO); 159 assert_eq!(from_x_y(MAX, 0.0).normalize_or_zero(), $vec::ZERO); 160 assert_eq!(from_x_y(MAX, MAX).normalize_or_zero(), $vec::ZERO);
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/benches/ |
D | vec3.rs | 84 v.normalize_or_zero() in vec3_normalize_or_zero()
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/f32/coresimd/ |
D | vec3a.rs | 486 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec4.rs | 458 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/f32/wasm32/ |
D | vec4.rs | 479 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec3a.rs | 499 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/f32/sse2/ |
D | vec3a.rs | 524 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec4.rs | 497 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/f32/ |
D | vec2.rs | 448 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec3.rs | 498 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/f64/ |
D | dvec2.rs | 448 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | dvec3.rs | 498 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | dvec4.rs | 529 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/f32/scalar/ |
D | vec3a.rs | 507 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
D | vec4.rs | 541 pub fn normalize_or_zero(self) -> Self { in normalize_or_zero() method
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/ |
D | CHANGELOG.md | 569 * Added `try_normalize()` and `normalize_or_zero()` for all real vector types.
|