Line.from_point_and_vector
- classmethod Line.from_point_and_vector(point, vector)[source]
Construct a line from a point and a vector.
- Parameters:
- point
compas.geometry.Point
The start point of the line.
- vector
compas.geometry.Vector
The vector of the line.
- point
- Returns:
Line
The constructed line.
See also
Examples
>>> from compas.geometry import Point, Vector >>> line = Line.from_point_and_vector(Point(0, 0, 0), Vector(1, 1, 1)) >>> print(line.start) Point(x=0.000, y=0.000, z=0.000) >>> print(line.end) Point(x=1.000, y=1.000, z=1.000)