vec3::raw_array

This commit is contained in:
Quaternions 2024-09-16 15:47:57 -07:00
parent 980db44c9d
commit c48b9d63bd

View File

@ -484,6 +484,9 @@ pub mod vec3{
pub fn int(x:i32,y:i32,z:i32)->Planar64Vec3{ pub fn int(x:i32,y:i32,z:i32)->Planar64Vec3{
Planar64Vec3::new([Planar64::from(x),Planar64::from(y),Planar64::from(z)]) 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{ pub fn raw_xyz(x:i64,y:i64,z:i64)->Planar64Vec3{
Planar64Vec3::new([Planar64::raw(x),Planar64::raw(y),Planar64::raw(z)]) Planar64Vec3::new([Planar64::raw(x),Planar64::raw(y),Planar64::raw(z)])
} }