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