Esempio n. 1
0
 public void SetZNormal()
 {
     VX = myEndXAxis - myOrigin;
     if (IsSameDbl(VX.Length, 0))
     {
         return;
     }
     VX.Normalise();
     VY = myEndYAxis - myOrigin;
     if (IsSameDbl(VY.Length, 0))
     {
         return;
     }
     VY.Normalise();
     VZ = VX.Cross(VY);
     if (IsSameDbl(VZ.Length, 0))
     {
         return;
     }
     VZ.Normalise();
     VY = VZ.Cross(VX);
     if (IsSameDbl(VY.Length, 0))
     {
         return;
     }
     VY.Normalise();
 }