add Planar64::MAX

This commit is contained in:
Quaternions 2023-10-29 01:13:06 -07:00
parent d2d5a62458
commit dff2648cd3

View File

@ -414,6 +414,7 @@ pub struct Planar64(i64);
impl Planar64{ impl Planar64{
pub const ZERO:Self=Self(0); pub const ZERO:Self=Self(0);
pub const ONE:Self=Self(1<<32); pub const ONE:Self=Self(1<<32);
pub const MAX:Self=Self(i64::MAX);
#[inline] #[inline]
pub const fn int(num:i32)->Self{ pub const fn int(num:i32)->Self{
Self(Self::ONE.0*num as i64) Self(Self::ONE.0*num as i64)