Vector.from_start_end

classmethod Vector.from_start_end(start, end)

Construct a vector from start and end points.

Parameters
  • start ([float, float, float] | Point) – The start point.

  • end ([float, float, float] | Point) – The end point.

Returns

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)