Vector.from_start_end
- classmethod Vector.from_start_end(start, end)[source]
Construct a vector from start and end points.
- Parameters:
- start[float, float, float] |
compas.geometry.Point
The start point.
- end[float, float, float] |
compas.geometry.Point
The end point.
- start[float, float, float] |
- Returns:
compas.geometry.Vector
The vector from start to end.
Examples
>>> vector = Vector.from_start_end([1.0, 0.0, 0.0], [1.0, 1.0, 0.0]) >>> print(vector) Vector(x=0.000, y=1.000, z=0.000)