Line.from_point_and_vector

classmethod Line.from_point_and_vector(point, vector)[source]

Construct a line from a point and a vector.

Parameters:
pointcompas.geometry.Point

The start point of the line.

vectorcompas.geometry.Vector

The vector of the line.

Returns:
Line

The constructed line.

Examples

>>> from compas.geometry import Point, Vector
>>> line = Line.from_point_and_vector(Point(0, 0, 0), Vector(1, 1, 1))
>>> line
Line(Point(0.000, 0.000, 0.000), Point(1.000, 1.000, 1.000))