Adjusted to use the newer Pact structuring.

This commit is contained in:
2017-12-17 14:32:46 -05:00
parent 3725a5d9d0
commit ee44b87b1c
4 changed files with 139 additions and 92 deletions

View File

@ -1,4 +1,4 @@
use ::binding::{CDouble, CFloat};
use binding::{CDouble, CFloat};
use ::real::Real;
use ::trig::radian::Radian;
@ -193,7 +193,7 @@ impl Trig for f32
{
unsafe
{
::pact::cosf(*arg.into() as CFloat) as Self
::pact::math::cosf(*arg.into() as CFloat) as Self
}
}
@ -202,7 +202,7 @@ impl Trig for f32
{
unsafe
{
::pact::sinf(*arg.into() as CFloat) as Self
::pact::math::sinf(*arg.into() as CFloat) as Self
}
}
@ -211,7 +211,7 @@ impl Trig for f32
{
unsafe
{
::pact::tanf(*arg.into() as CFloat) as Self
::pact::math::tanf(*arg.into() as CFloat) as Self
}
}
@ -220,7 +220,7 @@ impl Trig for f32
{
unsafe
{
Radian::new(::pact::acosf(arg as CFloat) as Self).into()
Radian::new(::pact::math::acosf(arg as CFloat) as Self).into()
}
}
@ -229,7 +229,7 @@ impl Trig for f32
{
unsafe
{
Radian::new(::pact::asinf(arg as CFloat) as Self).into()
Radian::new(::pact::math::asinf(arg as CFloat) as Self).into()
}
}
@ -238,7 +238,7 @@ impl Trig for f32
{
unsafe
{
Radian::new(::pact::atanf(arg as CFloat) as Self).into()
Radian::new(::pact::math::atanf(arg as CFloat) as Self).into()
}
}
@ -247,7 +247,8 @@ impl Trig for f32
{
unsafe
{
Radian::new(::pact::atan2f(y as CFloat, x as CFloat) as Self).into()
Radian::new(
::pact::math::atan2f(y as CFloat, x as CFloat) as Self).into()
}
}
@ -256,7 +257,7 @@ impl Trig for f32
{
unsafe
{
::pact::coshf(arg as CFloat) as Self
::pact::math::coshf(arg as CFloat) as Self
}
}
@ -264,7 +265,7 @@ impl Trig for f32
{
unsafe
{
::pact::sinhf(arg as CFloat) as Self
::pact::math::sinhf(arg as CFloat) as Self
}
}
@ -272,7 +273,7 @@ impl Trig for f32
{
unsafe
{
::pact::tanhf(arg as CFloat) as Self
::pact::math::tanhf(arg as CFloat) as Self
}
}
@ -280,7 +281,7 @@ impl Trig for f32
{
unsafe
{
::pact::acoshf(arg as CFloat) as Self
::pact::math::acoshf(arg as CFloat) as Self
}
}
@ -288,7 +289,7 @@ impl Trig for f32
{
unsafe
{
::pact::asinhf(arg as CFloat) as Self
::pact::math::asinhf(arg as CFloat) as Self
}
}
@ -296,7 +297,7 @@ impl Trig for f32
{
unsafe
{
::pact::atanhf(arg as CFloat) as Self
::pact::math::atanhf(arg as CFloat) as Self
}
}
}
@ -308,7 +309,7 @@ impl Trig for f64
{
unsafe
{
::pact::cos(*arg.into() as CDouble) as Self
::pact::math::cos(*arg.into() as CDouble) as Self
}
}
@ -317,7 +318,7 @@ impl Trig for f64
{
unsafe
{
::pact::sin(*arg.into() as CDouble) as Self
::pact::math::sin(*arg.into() as CDouble) as Self
}
}
@ -326,7 +327,7 @@ impl Trig for f64
{
unsafe
{
::pact::tan(*arg.into() as CDouble) as Self
::pact::math::tan(*arg.into() as CDouble) as Self
}
}
@ -335,7 +336,7 @@ impl Trig for f64
{
unsafe
{
Radian::new(::pact::acos(arg as CDouble) as Self).into()
Radian::new(::pact::math::acos(arg as CDouble) as Self).into()
}
}
@ -344,7 +345,7 @@ impl Trig for f64
{
unsafe
{
Radian::new(::pact::asin(arg as CDouble) as Self).into()
Radian::new(::pact::math::asin(arg as CDouble) as Self).into()
}
}
@ -353,7 +354,7 @@ impl Trig for f64
{
unsafe
{
Radian::new(::pact::atan(arg as CDouble) as Self).into()
Radian::new(::pact::math::atan(arg as CDouble) as Self).into()
}
}
@ -362,7 +363,8 @@ impl Trig for f64
{
unsafe
{
Radian::new(::pact::atan2(y as CDouble, x as CDouble) as Self).into()
Radian::new(
::pact::math::atan2(y as CDouble, x as CDouble) as Self).into()
}
}
@ -371,7 +373,7 @@ impl Trig for f64
{
unsafe
{
::pact::cosh(arg as CDouble) as Self
::pact::math::cosh(arg as CDouble) as Self
}
}
@ -379,7 +381,7 @@ impl Trig for f64
{
unsafe
{
::pact::sinh(arg as CDouble) as Self
::pact::math::sinh(arg as CDouble) as Self
}
}
@ -387,7 +389,7 @@ impl Trig for f64
{
unsafe
{
::pact::tanh(arg as CDouble) as Self
::pact::math::tanh(arg as CDouble) as Self
}
}
@ -395,7 +397,7 @@ impl Trig for f64
{
unsafe
{
::pact::acosh(arg as CDouble) as Self
::pact::math::acosh(arg as CDouble) as Self
}
}
@ -403,7 +405,7 @@ impl Trig for f64
{
unsafe
{
::pact::asinh(arg as CDouble) as Self
::pact::math::asinh(arg as CDouble) as Self
}
}
@ -411,7 +413,7 @@ impl Trig for f64
{
unsafe
{
::pact::atanh(arg as CDouble) as Self
::pact::math::atanh(arg as CDouble) as Self
}
}
}