This commit is contained in:
Quaternions 2023-10-13 16:27:45 -07:00
parent 4e98e9a577
commit f5d6280e0a

View File

@ -256,8 +256,8 @@ impl std::ops::Mul<i64> for Ratio64Vec2{
#[derive(Clone,Copy,Hash)] #[derive(Clone,Copy,Hash)]
pub struct Angle32(i32); pub struct Angle32(i32);
impl Angle32{ impl Angle32{
pub const FRAC_PI_2:Self=Self(1<<31); pub const FRAC_PI_2:Self=Self(1<<30);
pub const PI:Self=Self(-1<<32); pub const PI:Self=Self(-1<<31);
#[inline] #[inline]
pub fn wrap_from_i64(theta:i64)->Self{ pub fn wrap_from_i64(theta:i64)->Self{
//take lower bits //take lower bits