Ejemplo n.º 1
0
 //public static IntersectPoints ClosestPointOnRectangleToLine(Vector3 segment0, Vector3 segment1, Vector3 vertex1, Vector3 vertex2, Vector3 vertex3, Vector3 vertex4, bool treatAsLineSegment = false)
 //{
 //	return ClosestPointOnTriangleToLine(segment0, segment1, vertex1, vertex2, vertex3, vertex4, treatAsLineSegment, true);
 //}
 public static IntersectPoints ClosestPointOnRectangleToLine(Vector3 segment0, Vector3 segment1, Rect3D rectangle, bool treatAsLineSegment = false)
 {
     return(ClosestPointOnTriangleToLine(segment0, segment1, rectangle.bottomLeft, rectangle.topLeft, rectangle.topRight, rectangle.bottomRight, treatAsLineSegment, true));
 }
Ejemplo n.º 2
0
 public static void DrawRect3D(Rect3D rect, Color color, float duration = .001f)
 {
     DrawPlane(rect.bottomLeft, rect.topLeft, rect.topRight, rect.bottomRight, color, duration);
 }