pub struct LineSegment {
    pub start: Point,
    pub end: Point,
}
Expand description

A finite line segment

Fields

start: Point

The start point of the line segment

end: Point

The end point of the line segment

Implementations

Construct a ray from a starting point and direction

Trait Implementations

The closest point to another object

The closest point to another object

The closest point to another object

The closest point to another object

The closest point to another object

Whether this shape collides with the other, and where

Formats the value using the given formatter. Read more

The distance between two objects

The distance between two objects

The distance between two objects

The distance between two objects

The distance between two objects

Whether this shape intersect with the other

Whether this shape intersect with the other

Whether this shape intersect with the other

Whether this shape intersect with the other

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.