Fix ToVector3
This commit is contained in:
parent
f9867fc015
commit
cf3587b226
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user