Math/Angle: Add FromDegrees and FromRadians builders

This commit is contained in:
Lynix
2018-10-10 22:59:57 +02:00
parent 56922001ba
commit 9cc83aafda
5 changed files with 31 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ SCENARIO("RenderSystem", "[NDK][RenderSystem]")
WHEN("We set an angular velocity")
{
Nz::RadianAnglef angularSpeed(Nz::DegreeToRadian(90.f));
Nz::RadianAnglef angularSpeed = Nz::RadianAnglef::FromDegrees(90.f);
physicsComponent2D.SetAngularVelocity(angularSpeed);
world.Update(1.f);