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.

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)