mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add Vec2::ONE
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user