Plane.from_three_points

classmethod Plane.from_three_points(a, b, c)[source]

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

Parameters:
a[float, float, float] | compas.geometry.Point

The first point.

b[float, float, float] | compas.geometry.Point

The second point.

c[float, float, float] | compas.geometry.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)