Skip to content
Alessandro Febretti edited this page Aug 28, 2013 · 3 revisions

[[module omega | Python-Reference#module-omega]]

Planes can be constructed with any of:

  • three Point3's lying on the plane
  • a Point3 on the plane and the Vector3 normal
  • a Vector3 normal and k, described below.

Internally, planes are stored with the normal n and constant k such that n.p = k for any point on the plane p.

The following methods are supported:

intersect(other)

If other is a Line3, Ray3 or LineSegment3, returns a Point3 of intersection, or None if there is no intersection. If other is a Plane, returns the Line3 of intersection.

connect(other)

Returns a LineSegment3 which is the minimum length line segment that can connect the two shapes. other may be a Point3, Line3, Ray3, LineSegment3, Sphere or Plane.

distance(other)

Returns the absolute minimum distance to other. Internally this simply returns the length of the result of connect.

Clone this wiki locally