[][src]Struct amethyst_gltf::GltfNodeExtent

pub struct GltfNodeExtent {
    pub start: Point3<f32>,
    pub end: Point3<f32>,

A GLTF node extent


start: Point3<f32>

The beginning of this extent

end: Point3<f32>

The end of this extent


impl GltfNodeExtent[src]

pub fn extend_range(&mut self, other: &Range<[f32; 3]>)[src]

Extends this to include the input range.

pub fn extend(&mut self, other: &GltfNodeExtent)[src]

Extends this to include the provided extent.

pub fn centroid(&self) -> Point3<f32>[src]

Returns the centroid of this extent

pub fn distance(&self) -> Vector3<f32>[src]

Returns the 3 dimensional distance between the start and end of this.

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

Determines if this extent is valid.

Trait Implementations

impl Clone for GltfNodeExtent[src]

impl Debug for GltfNodeExtent[src]

impl Default for GltfNodeExtent[src]

impl From<Range<[f32; 3]>> for GltfNodeExtent[src]

impl Into<BoundingSphere> for GltfNodeExtent[src]

Auto Trait Implementations

impl RefUnwindSafe for GltfNodeExtent

impl Send for GltfNodeExtent

impl Sync for GltfNodeExtent

impl Unpin for GltfNodeExtent

impl UnwindSafe for GltfNodeExtent

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float

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

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Clone for T where
    T: Clone

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Resource for T where
    T: Any + Send + Sync

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

type Output = T

Should always be Self

impl<T> SetParameter for T[src]

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

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,