diff --git a/src/integer.rs b/src/integer.rs index 192b15b..fe4fca1 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -484,6 +484,9 @@ pub mod vec3{ pub fn int(x:i32,y:i32,z:i32)->Planar64Vec3{ Planar64Vec3::new([Planar64::from(x),Planar64::from(y),Planar64::from(z)]) } + pub fn raw_array(array:[i64;3])->Planar64Vec3{ + Planar64Vec3::new(array.map(Planar64::raw)) + } pub fn raw_xyz(x:i64,y:i64,z:i64)->Planar64Vec3{ Planar64Vec3::new([Planar64::raw(x),Planar64::raw(y),Planar64::raw(z)]) }