Struct linestring::mint_3d::Line3 [−][src]
A 3d line
Fields
start: Point3<T>
end: Point3<T>
Implementations
impl<T> Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
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]
p1: &Point3<T>,
p2: &Point3<T>,
p3: &Point3<T>
) -> T
returns (area of a triangle)²*4
Trait Implementations
impl<T: Clone> Clone for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
impl<T: Copy> Copy for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
impl<T: Debug> Debug for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
impl<T: Eq> Eq for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
impl<T, IT> From<[IT; 2]> for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
IT: Copy + Into<Point3<T>>,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
IT: Copy + Into<Point3<T>>,
impl<T: Hash> Hash for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Into<[T; 6]> for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
impl<T: PartialEq> PartialEq<Line3<T>> for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
impl<T> StructuralEq for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
impl<T> StructuralPartialEq for Line3<T> where
T: Float + Debug + AbsDiffEq + UlpsEq,
[src]
T: Float + Debug + AbsDiffEq + UlpsEq,
Auto Trait Implementations
impl<T> RefUnwindSafe for Line3<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Line3<T> where
T: Send,
T: Send,
impl<T> Sync for Line3<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Line3<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Line3<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
T: Copy + PartialEq<T> + Debug + Any,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,