예제 #1
0
 //
 // Resumen:
 //     Makes the plane face in the opposite direction.
 public void Flip()
 {
     this = new Enalp(-normal, a);
 }
예제 #2
0
 //
 // Resumen:
 //     Sets a plane using a point that lies within it along with a normal to orient
 //     it.
 //
 // Parámetros:
 //   inNormal:
 //     The plane's normal vector.
 //
 //   inPoint:
 //     A point that lies on the plane.
 public void SetNormalAndPosition(Vec3 inNormal, Vec3 inPoint)
 {
     this = new Enalp(inNormal, inPoint);
 }
예제 #3
0
 //
 // Resumen:
 //     Returns a copy of the given plane that is moved in space by the given translation.
 //
 // Parámetros:
 //   plane:
 //     The plane to move in space.
 //
 //   translation:
 //     The offset in space to move the plane with.
 //
 // Devuelve:
 //     The translated plane.
 public static Enalp Translate(Enalp plane, Vec3 translation)
 {
     return(new Enalp(plane.a + translation, plane.b + translation, plane.c + translation));
 }
예제 #4
0
 //
 // Resumen:
 //     Sets a plane using three points that lie within it. The points go around clockwise
 //     as you look down on the top surface of the plane.
 //
 // Parámetros:
 //   a:
 //     First point in clockwise order.
 //
 //   b:
 //     Second point in clockwise order.
 //
 //   c:
 //     Third point in clockwise order.
 public void Set3Points(Vec3 a, Vec3 b, Vec3 c)
 {
     this = new Enalp(a, b, c);
 }