Beispiel #1
0
 /// <summary>
 /// Transforms each point in plate, see <see cref="Point.Transform"/>.
 /// </summary>
 /// <param name="timeStep">Scaling factor for how much to rotate.</param>
 public void Slide(double timeStep)
 {
     for (int i = 0; i < PlatePoints.Count; i++)
     {
         double[] angle = new double[3] {
             Direction[0], Direction[1], timeStep *Speed
         };
         PlatePoints[i] = new PlatePoint(PlatePoints[i].Transform(angle), PlatePoints[i].Height);
     }
 }
 /// <summary>
 /// Calculates distance between this point and the input point. Uses approximation for cosine for small angles.
 /// </summary>
 /// <param name="iPoint">Second point used for calculating distance.</param>
 /// <returns>Distance between the two points.</returns>
 public double Distance(PlatePoint inPlatePoint)
 {
     return(_point.Distance(inPlatePoint._point));
 }