Origin.from_points

classmethod Origin.from_points(point, point_xaxis, point_xyplane)

Constructs a frame from 3 points.

Parameters
  • point ([float, float, float] | Point) – The origin of the frame.

  • point_xaxis ([float, float, float] | Point) – A point on the x-axis of the frame.

  • point_xyplane ([float, float, float] | Point) – A point within the xy-plane of the frame.

Returns

Frame – The constructed frame.

Examples

>>> frame = Frame.from_points([0, 0, 0], [1, 0, 0], [0, 1, 0])
>>> frame.point
Point(0.000, 0.000, 0.000)
>>> frame.xaxis
Vector(1.000, 0.000, 0.000)
>>> frame.yaxis
Vector(0.000, 1.000, 0.000)