diff --git a/Axis.cpp b/Axis.cpp index 0b21ac0..2fba93e 100644 --- a/Axis.cpp +++ b/Axis.cpp @@ -20,8 +20,8 @@ Axis::Axis(Angle horizontal, Angle vertical) { }; Axis::Axis(Vector3 v) { - this->horizontalAngle = atan2f(v.x, v.z) * Angle::Rad2Deg; - this->verticalAngle = 90 - acosf(v.y) * Angle::Rad2Deg; + this->horizontalAngle = atan2f(v.Right(), v.Forward()) * Angle::Rad2Deg; + this->verticalAngle = 90 - acosf(v.Up()) * Angle::Rad2Deg; } const Axis Axis::forward = Axis(0, 0);