Struct rs_math3d::primitives::Line [−][src]
Expand description
Line
Fields
p: V
d: V
Implementations
impl<T: Scalar, V: Vector<T>> Line<T, V>
[src]
impl<T: Scalar, V: Vector<T>> Line<T, V>
[src]pub fn new(p: &V, d: &V) -> Self
[src]
pub fn from_start_end(s: &V, e: &V) -> Self
[src]
pub fn normalize(&self) -> Self
[src]
pub fn closest_point_on_line(&self, p: &V) -> (T, V)
[src]
Trait Implementations
impl<T: Copy + Scalar, V: Copy + Vector<T>> Copy for Line<T, V>
[src]
Auto Trait Implementations
impl<T, V> Send for Line<T, V> where
T: Send,
V: Send,
T: Send,
V: Send,
impl<T, V> Sync for Line<T, V> where
T: Sync,
V: Sync,
T: Sync,
V: Sync,
impl<T, V> Unpin for Line<T, V> where
T: Unpin,
V: Unpin,
T: Unpin,
V: Unpin,