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: 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: 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]
fn clone(&self) -> Line<S, V, P>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
fn eq(&self, __arg_0: &Line<S, V, P>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Line<S, V, P>) -> bool
[src]
This method tests for !=
.