2.1.2.5. Segment

class Valentina.Geometry.Segment.Segment2D(p0, p1)[source]

Bases: Valentina.Geometry.Primitive.Primitive2D, Valentina.Geometry.Primitive.ReversablePrimitiveMixin

2D Segment

Construct a Segment2D between two points.

bounding_box()[source]
center
clone()[source]
end_point
intersect(segment2)[source]

Checks if the line segments intersect. return 1 if there is an intersection 0 otherwise

length
p0
p1
point_at_t(t)[source]
reverse()[source]
start_point
to_line()[source]
vector
Valentina.Geometry.Segment.interpolate_two_points(p0, p1, t)[source]
Valentina.Geometry.Segment.triangle_orientation(p0, p1, p2)[source]