Plane.from_three_points

classmethod Plane.from_three_points(a, b, c)

Construct a plane from three points in three-dimensional space.

Parameters
  • a (point) – The first point.

  • b (point) – The second point.

  • c (point) – The second point.

Returns

compas.geometry.Plane – A plane with base point a and normal vector defined as the unitized cross product of the vectors ab and ac.

Examples

>>> plane = Plane.from_three_points([0.0, 0.0, 0.0], [2.0, 1.0, 0.0], [0.0, 3.0, 0.0])
>>> plane.point
Point(0.000, 0.000, 0.000)
>>> plane.normal
Vector(0.000, 0.000, 1.000)