[][src]Struct collision::Line

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: P

Origin of the line

dest: P

Endpoint of the line

Methods

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

pub fn new(origin: P, dest: P) -> Line<S, V, P>
[src]

Create a new directed line segment from origin to dest.

Trait Implementations

impl<S: BaseFloat> Continuous<Line<S, Vector2<S>, Point2<S>>> for Ray2<S>
[src]

Determines if an intersection between a ray and a line segment is found.

type Result = Point2<S>

Result returned by the intersection test

impl<S: BaseNum> Contains<Line<S, Vector2<S>, Point2<S>>> for Aabb2<S>
[src]

impl<S: BaseNum> Contains<Line<S, Vector3<S>, Point3<S>>> for Aabb3<S>
[src]

impl<S: BaseFloat> Contains<Line<S, Vector3<S>, Point3<S>>> for Sphere<S>
[src]

impl<S> From<Line<S, Vector2<S>, Point2<S>>> for Primitive2<S>
[src]

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

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]