pub struct Line<S: Scalar> { /* private fields */ }Implementations§
Source§impl<S: Scalar> Line<S>
impl<S: Scalar> Line<S>
Sourcepub fn try_new(start: Vector3<S>, end: Vector3<S>) -> GeopResult<Self>
pub fn try_new(start: Vector3<S>, end: Vector3<S>) -> GeopResult<Self>
Fails if start and end could be equal (zero-length segment uncertain).
pub fn start(&self) -> &Vector3<S>
pub fn end(&self) -> &Vector3<S>
pub fn direction(&self) -> Vector3<S>
pub fn length_sq(&self) -> S
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Line<S>where
S: Freeze,
impl<S> RefUnwindSafe for Line<S>where
S: RefUnwindSafe,
impl<S> Send for Line<S>
impl<S> Sync for Line<S>
impl<S> Unpin for Line<S>where
S: Unpin,
impl<S> UnsafeUnpin for Line<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Line<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more