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])
>>> print(plane.point)
Point(x=0.000, y=0.000, z=0.000)
>>> print(plane.normal)
Vector(x=0.000, y=0.000, z=1.000)