Struct linestring::mint_3d::LineStringSet3[][src]

pub struct LineStringSet3<T> where
    T: Float + Debug + AbsDiffEq + UlpsEq
{ pub set: Vec<LineString3<T>>, pub aabb: Aabb3<T>, }

A set of linestrings + an aabb Intended to contain related 3d shapes. E.g. outlines of letters with holes

Fields

set: Vec<LineString3<T>>aabb: Aabb3<T>

Implementations

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

pub fn default() -> Self[src]

pub fn with_capacity(capacity: usize) -> Self[src]

pub fn set(&self) -> &Vec<LineString3<T>>[src]

pub fn is_empty(&self) -> bool[src]

pub fn push(&mut self, ls: LineString3<T>)[src]

pub fn get_aabb(&self) -> &Aabb3<T>[src]

pub fn copy_to_2d(&self, plane: Plane) -> LineStringSet2<T>[src]

Copy this linestringset3 into a linestringset2, populating the axes defined by ‘plane’ An axis will always try to keep it’s position (e.g. y goes to y if possible). That way the operation is reversible (with regards to axis positions).

pub fn take_from(&mut self, other: &mut Self)[src]

drains the ‘other’ container of all shapes and put them into ‘self’

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for LineStringSet3<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<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.