From f73b4a0c529bf0add86cba1235fa6d216c49a031 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 31 Oct 2023 20:05:37 -0700 Subject: [PATCH] Planar64Vec3::new --- src/integer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/integer.rs b/src/integer.rs index 053ef0d..2070423 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -589,6 +589,10 @@ impl Planar64Vec3{ pub const MIN:Self=Planar64Vec3(glam::I64Vec3::MIN); pub const MAX:Self=Planar64Vec3(glam::I64Vec3::MAX); #[inline] + pub const fn new(x:Planar64,y:Planar64,z:Planar64)->Self{ + Self(glam::i64vec3(x.0,y.0,z.0)) + } + #[inline] pub const fn int(x:i32,y:i32,z:i32)->Self{ Self(glam::i64vec3((x as i64)<<32,(y as i64)<<32,(z as i64)<<32)) }