Frame.from_points
- classmethod Frame.from_points(point, point_xaxis, point_xyplane)[source]
Constructs a frame from 3 points.
- Parameters:
- point[float, float, float] |
compas.geometry.Point
The origin of the frame.
- point_xaxis[float, float, float] |
compas.geometry.Point
A point on the x-axis of the frame.
- point_xyplane[float, float, float] |
compas.geometry.Point
A point within the xy-plane of the frame.
- point[float, float, float] |
- Returns:
compas.geometry.Frame
The constructed frame.
Examples
>>> frame = Frame.from_points([0, 0, 0], [1, 0, 0], [0, 1, 0]) >>> print(frame.point) Point(x=0.000, y=0.000, z=0.000) >>> print(frame.xaxis) Vector(x=1.000, y=0.000, z=0.000) >>> print(frame.yaxis) Vector(x=0.000, y=1.000, z=0.000)