Vector.from_start_end
-
classmethod
Vector.
from_start_end
(start, end) Construct a vector from start and end points.
- Parameters
start (
compas.geometry.Point
or list) – The start point.end (
compas.geometry.Point
or list) – The end point.
- Returns
compas.geometry.Vector
– The vector from start to end.
Examples
>>> Vector.from_start_end([1.0, 0.0, 0.0], [1.0, 1.0, 0.0]) Vector(0.000, 1.000, 0.000)