2.1.2.5. Segment¶
-
class
Valentina.Geometry.Segment.Segment2D(p0, p1)[source]¶ Bases:
Valentina.Geometry.Primitive.Primitive2D,Valentina.Geometry.Primitive.ReversablePrimitiveMixin2D Segment
Construct a
Segment2Dbetween two points.-
center¶
-
end_point¶
-
intersect(segment2)[source]¶ Checks if the line segments intersect. return 1 if there is an intersection 0 otherwise
-
length¶
-
p0¶
-
p1¶
-
start_point¶
-
vector¶
-