pub struct Line {
    pub point: Point,
    pub direction: Vector3,
}
Expand description

An infinite line.

Fields

point: Point

An arbitrary point on the line.

direction: Vector3

The direction of the line.

Implementations

Construct a line from a point on the line and its direction.

Construct a line from two points on the line.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the distance between the line and another line.

Returns the distance between the ray and a line.

Returns the distance between the line and a given point.

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.