vec3::{MIN,MAX}

This commit is contained in:
Quaternions 2024-09-26 14:36:24 -07:00
parent e7a881ddc0
commit b879b09369
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
use crate::integer::{Planar64,Planar64Vec3};
use crate::integer::{vec3,Planar64Vec3};
#[derive(Clone)]
pub struct Aabb{
@ -8,7 +8,7 @@ pub struct Aabb{
impl Default for Aabb{
fn default()->Self{
Self{min:Planar64Vec3::from_value(Planar64::MAX),max:Planar64Vec3::from_value(Planar64::MIN)}
Self{min:vec3::MAX,max:vec3::MIN}
}
}

View File

@ -531,6 +531,8 @@ pub type Planar64Mat3=linear_ops::types::Matrix3<Planar64>;
pub mod vec3{
use super::*;
pub use linear_ops::types::Vector3;
pub const MIN:Planar64Vec3=Planar64Vec3::new([Planar64::MIN;3]);
pub const MAX:Planar64Vec3=Planar64Vec3::new([Planar64::MAX;3]);
pub const ZERO:Planar64Vec3=Planar64Vec3::new([Planar64::ZERO;3]);
pub const ZERO_2:linear_ops::types::Vector3<Fixed::<2,64>>=linear_ops::types::Vector3::new([Fixed::<2,64>::ZERO;3]);
pub const X:Planar64Vec3=Planar64Vec3::new([Planar64::ONE,Planar64::ZERO,Planar64::ZERO]);