Ejemplo n.º 1
0
 public static PolarVector NormaliseAngle(PolarVector p)
 {
     p.Azimuth = MathUtilities.Normalise(p.Azimuth, AngleRangeStart, AngleRangeEnd);
     return(p);
 }
Ejemplo n.º 2
0
 public static Vector2 ToCartesianCoordinates(PolarVector polarVector, double dAzimuth, double dRadius)
 {
     return(new Vector2((float)((polarVector.Radius + dRadius) * System.Math.Cos(polarVector.Azimuth + dAzimuth)), (float)((polarVector.Radius + dRadius) * System.Math.Sin(polarVector.Azimuth + dAzimuth))));
 }
Ejemplo n.º 3
0
 public static Vector2 ToCartesianCoordinates(PolarVector polarVector)
 {
     return(ToCartesianCoordinates(polarVector, 0, 0));
 }
Ejemplo n.º 4
0
 public Vector2 ToCartesianCoordinates()
 {
     return(PolarVector.ToCartesianCoordinates(this));
 }
Ejemplo n.º 5
0
 public static Vector2 ToCartesianCoordinates(PolarVector polarVector, double dAzimuth, double dRadius)
 {
    return new Vector2((float)((polarVector.Radius+dRadius) * System.Math.Cos(polarVector.Azimuth+dAzimuth)), (float)((polarVector.Radius+dRadius) * System.Math.Sin(polarVector.Azimuth+dAzimuth))); 
 }
Ejemplo n.º 6
0
 public static PolarVector NormaliseAngle(PolarVector p)
 {
     p.Azimuth = MathUtilities.Normalise(p.Azimuth, AngleRangeStart, AngleRangeEnd);
     return p;
 }
Ejemplo n.º 7
0
 public static Vector2 ToCartesianCoordinates(PolarVector polarVector)
 {
     return ToCartesianCoordinates(polarVector, 0, 0);
 }