Struct cgmath::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
dest

Methods

impl<S: BaseNum, V: Vector<S>, P: Point<S, V>> Line<S, V, P>

fn new(origin: P, dest: P) -> Line<S, V, P>

Trait Implementations

Derived Implementations

impl<S: Decodable, V: Decodable, P: Decodable> Decodable for Line<S, V, P>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Line<S, V, P>, __D::Error>

impl<S: Encodable, V: Encodable, P: Encodable> Encodable for Line<S, V, P>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<S: PartialEq, V: PartialEq, P: PartialEq> PartialEq for Line<S, V, P>

fn eq(&self, __arg_0: &Line<S, V, P>) -> bool

fn ne(&self, __arg_0: &Line<S, V, P>) -> bool

impl<S: Clone, V: Clone, P: Clone> Clone for Line<S, V, P>

fn clone(&self) -> Line<S, V, P>

fn clone_from(&mut self, source: &Self)

impl<S: Copy, V: Copy, P: Copy> Copy for Line<S, V, P>