Add Vec2::ONE
This commit is contained in:
parent
96c34139fd
commit
699be07978
|
|
@ -140,6 +140,7 @@ impl Vec2 {
|
||||||
pub const DOWN: Self = Self { x: 0.0, y: 1.0 };
|
pub const DOWN: Self = Self { x: 0.0, y: 1.0 };
|
||||||
|
|
||||||
pub const ZERO: Self = Self { x: 0.0, y: 0.0 };
|
pub const ZERO: Self = Self { x: 0.0, y: 0.0 };
|
||||||
|
pub const ONE: Self = Self { x: 1.0, y: 1.0 };
|
||||||
pub const INFINITY: Self = Self::splat(f32::INFINITY);
|
pub const INFINITY: Self = Self::splat(f32::INFINITY);
|
||||||
pub const NAN: Self = Self::splat(f32::NAN);
|
pub const NAN: Self = Self::splat(f32::NAN);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue