Line

Represents a 2D line segment

@safe
struct Line {
Vector start;
Vector end;
}

Members

Functions

intersects
bool intersects(in Circle c)

Check if a line segment intersects a circle

intersects
bool intersects(in Rectangle r)

Check if a line segment intersects a rectangle

Meta