[−][src]Struct collision::Line
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]
impl<S: BaseNum, V: VectorSpace<Scalar = S>, P: EuclideanSpace<Scalar = S, Diff = V>> Line<S, V, P>
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]
impl<S: BaseFloat> Continuous<Line<S, Vector2<S>, Point2<S>>> for Ray2<S>
Determines if an intersection between a ray and a line segment is found.
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, line: &Line2<S>) -> Option<Point2<S>> | [src] |
impl<S: BaseNum> Contains<Line<S, Vector2<S>, Point2<S>>> for Aabb2<S>
[src]
impl<S: BaseNum> Contains<Line<S, Vector2<S>, Point2<S>>> for Aabb2<S>
impl<S: BaseNum> Contains<Line<S, Vector3<S>, Point3<S>>> for Aabb3<S>
[src]
impl<S: BaseNum> Contains<Line<S, Vector3<S>, Point3<S>>> for Aabb3<S>
impl<S: BaseFloat> Contains<Line<S, Vector3<S>, Point3<S>>> for Sphere<S>
[src]
impl<S: BaseFloat> Contains<Line<S, Vector3<S>, Point3<S>>> for Sphere<S>
impl<S: Clone, V: Clone, P: Clone> Clone for Line<S, V, P>
[src]
impl<S: Clone, V: Clone, P: Clone> Clone for Line<S, V, P>
fn clone(&self) -> 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> From<Line<S, Vector2<S>, Point2<S>>> for Primitive2<S>
[src]
impl<S> From<Line<S, Vector2<S>, Point2<S>>> for Primitive2<S>
fn from(line: Line2<S>) -> Primitive2<S> | [src] |
impl<S: Copy, V: Copy, P: Copy> Copy for Line<S, V, P>
[src]
impl<S: Copy, V: Copy, P: Copy> Copy for Line<S, V, P>
impl<S: PartialEq, V: PartialEq, P: PartialEq> PartialEq<Line<S, V, P>> for Line<S, V, P>
[src]
impl<S: PartialEq, V: PartialEq, P: PartialEq> PartialEq<Line<S, V, P>> for Line<S, V, P>
impl<S: Debug, V: Debug, P: Debug> Debug for Line<S, V, P>
[src]
impl<S: Debug, V: Debug, P: Debug> Debug for Line<S, V, P>
Auto Trait Implementations
impl<S, V, P> Send for Line<S, V, P> where
P: Send,
S: Send,
V: Send,
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,
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> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |