Plane.from_point_and_two_vectors

classmethod Plane.from_point_and_two_vectors(point, u, v)[source]

Construct a plane from a base point and two vectors.

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

The base point.

u[float, float, float] | compas.geometry.Vector

The first vector.

v[float, float, float] | compas.geometry.Vector

The second vector.

Returns:
compas.geometry.Plane

A plane with base point point and normal vector defined as the unitized cross product of vectors u and v.

Examples

>>> plane = Plane.from_point_and_two_vectors([0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.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)