diff --git a/LinearAlgebra/src/Spherical.cs b/LinearAlgebra/src/Spherical.cs index 183aa01..e138e7c 100644 --- a/LinearAlgebra/src/Spherical.cs +++ b/LinearAlgebra/src/Spherical.cs @@ -106,7 +106,7 @@ namespace LinearAlgebra { // } public Vector3 ToVector3() { - float verticalRad = (float)(Math.PI / 2 - this.direction.vertical) * Angle.Deg2Rad; + float verticalRad = (float)(90 - this.direction.vertical) * Angle.Deg2Rad; float horizontalRad = this.direction.horizontal * Angle.Deg2Rad; float cosVertical = (float)Math.Cos(verticalRad); float sinVertical = (float)Math.Sin(verticalRad);