Struct collision::Line [] [src]

pub struct Line<S, V, P> {
    pub origin: P,
    pub dest: P,
    // some fields omitted
}

A generic directed line segment from origin to dest.

Fields

Origin of the line

Endpoint of the line

Methods

impl<S: BaseNum, V: VectorSpace<Scalar = S>, P: EuclideanSpace<Scalar = S, Diff = V>> Line<S, V, P>
[src]

[src]

Create a new directed line segment from origin to dest.

Trait Implementations

impl<S: Copy, V: Copy, P: Copy> Copy for Line<S, V, P>
[src]

impl<S: Clone, V: Clone, P: Clone> Clone for Line<S, V, P>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: PartialEq, V: PartialEq, P: PartialEq> PartialEq for Line<S, V, P>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<S: Debug, V: Debug, P: Debug> Debug for Line<S, V, P>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S, V, P> Send for Line<S, V, P> where
    P: Send,
    S: Send,
    V: Send

impl<S, V, P> Sync for Line<S, V, P> where
    P: Sync,
    S: Sync,
    V: Sync