10.1.4.5. Line¶
Module to implement line.
-
class
Patro.GeometryEngine.Line.
Line2D
(point, vector)[source]¶ Bases:
Patro.GeometryEngine.Primitive.Primitive2DMixin
,Patro.GeometryEngine.Primitive.Primitive
Class to implement 2D Line.
Construct a
Line2D
from a point and a vector.-
get_x_y_from_bounding_box
(interval)[source]¶ Return the bounding box build on the intersection of the input bounding box with the line
-
is_infinite
¶ True if the primitive has infinite extend like a line.
Note: a closed primitive cannot be infinite.
-
point_at_s
(s)¶ Return the Point corresponding to the curvilinear abscissa s
-
point_at_t
(s)¶ Return the Point corresponding to the curvilinear abscissa s
-