Add Vec2::ONE

This commit is contained in:
Emil Ernerfeldt 2025-06-15 18:01:48 -07:00
parent 96c34139fd
commit 699be07978
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ impl Vec2 {
pub const DOWN: Self = Self { x: 0.0, y: 1.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 NAN: Self = Self::splat(f32::NAN);