Exemple #1
0
 /// <summary>
 /// Clone Constructor for the Base Point.
 /// </summary>
 /// <param name="inPoint">Input Point.</param>
 public BasePoint(BasePoint inPoint)
 {
     _position = inPoint._position;
     Near      = inPoint.Near;
     _theta    = inPoint._theta;
     _cosPhi   = inPoint._cosPhi;
     _sinPhi   = inPoint._sinPhi;
 }
Exemple #2
0
 /// <summary>
 /// Constructor for the Base Point. Takes in a Simple Point structure.
 /// </summary>
 /// <param name="inPoint">Input Point.</param>
 public BasePoint(KeyPoint inPoint)
 {
     _position = inPoint;
     Near      = new AdjacentPoints(_position);
     _theta    = _position.X * _dTheta;
     _cosPhi   = Math.Cos((_position.Y * _dPhi) + _phiShift);
     _sinPhi   = Math.Sin((_position.Y * _dPhi) + _phiShift);
 }
Exemple #3
0
 /// <summary>
 /// Sets static variables for Base Point and Simple Point.
 /// </summary>
 /// <param name="inHalfXSize">Will become <see cref="_halfMapXSize"/>.</param>
 /// <param name="inYSize">Will become <see cref="_mapYSize"/>.</param>
 public static void MapSetup(int inHalfXSize, int inYSize)
 {
     AdjacentPoints.MapSize(inHalfXSize, inYSize);
     _halfMapXSize = inHalfXSize;
     _mapYSize     = inYSize;
     _dTheta       = Math.PI / inHalfXSize;
     _dPhi         = Math.PI / inYSize;
     _phiShift     = 0.5 * _dPhi - (Math.PI / 2);
 }