Struct linestring::mint_3d::Line3[][src]

pub struct Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
{ pub start: Point3<T>, pub end: Point3<T>, }

A 3d line

Fields

start: Point3<T>end: Point3<T>

Implementations

impl<T> Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

pub fn new(start: Point3<T>, end: Point3<T>) -> Self[src]

pub fn triangle_area_squared_times_4(
    p1: &Point3<T>,
    p2: &Point3<T>,
    p3: &Point3<T>
) -> T
[src]

returns (area of a triangle)²*4

Trait Implementations

impl<T: Clone> Clone for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T: Copy> Copy for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T: Debug> Debug for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T: Eq> Eq for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T, IT> From<[IT; 2]> for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq,
    IT: Copy + Into<Point3<T>>, 
[src]

impl<T: Hash> Hash for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T> Into<[T; 6]> for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T: PartialEq> PartialEq<Line3<T>> for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T> StructuralEq for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

impl<T> StructuralPartialEq for Line3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Line3<T> where
    T: RefUnwindSafe

impl<T> Send for Line3<T> where
    T: Send

impl<T> Sync for Line3<T> where
    T: Sync

impl<T> Unpin for Line3<T> where
    T: Unpin

impl<T> UnwindSafe for Line3<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.