Plane.from_point_and_two_vectors

classmethod Plane.from_point_and_two_vectors(point, u, v)

Construct a plane from a base point and two vectors.

Parameters
  • point ([float, float, float] | Point) – The base point.

  • u ([float, float, float] | Vector) – The first vector.

  • v ([float, float, float] | Vector) – The second vector.

Returns

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_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)