Ejemplo n.º 1
0
        private DeltaPoint[] ConvertToPoints(DeltaMesh Mesh)
        {
            DeltaPoint[] final = new DeltaPoint[3];

            DeltaPoint[] dp = { Mesh.A, Mesh.B, Mesh.C };

            for (int i = 0; i < dp.Length; i++)
            {
                if (final[i] == null)
                {
                    final[i] = new DeltaPoint();
                }
                final[i].dX = ConvertDelta(origin.dX, dp[i].dX, ang);
            }

            return(final);
        }
Ejemplo n.º 2
0
 public void SetRandom(Random r)
 {
     A = new DeltaPoint(); A.SetRandom(r);
     B = new DeltaPoint(); B.SetRandom(r);
     C = new DeltaPoint(); C.SetRandom(r);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Resets the perspective.
 /// </summary>
 public void Reset()
 {
     origin = new DeltaPoint(new double[] { 0.001, 0.001 });
     ang    = 50;
 }
Ejemplo n.º 4
0
 public Eye()
 {
     origin = new DeltaPoint(new double[] { 0.001, 0.001 });
 }