[][src]Struct ncollide_geometry::shape::ConvexHull

pub struct ConvexHull<P> { /* fields omitted */ }

The implicit convex hull of a set of points.

Methods

impl<P> ConvexHull<P>[src]

pub fn new(points: Vec<P>) -> ConvexHull<P>[src]

Creates a polytope from a set of point.

The set of point as not assumed to form a convex polytope.

impl<P> ConvexHull<P>[src]

pub fn points(&self) -> &[P][src]

The list of points of this convex polytope.

Trait Implementations

impl<P: Point, M: Isometry<P>> SupportMap<P, M> for ConvexHull<P>[src]

fn support_point_toward(&self, transform: &M, dir: &Unit<P::Vector>) -> P[src]

Same as self.support_point except that dir is normalized.

fn support_area_toward(
    &self,
    transform: &M,
    dir: &Unit<P::Vector>,
    _angle: P::Real,
    out: &mut Vec<P>
)
[src]

impl<P: Point, M: Isometry<P>> Shape<P, M> for ConvexHull<P>[src]

fn as_composite_shape(&self) -> Option<&dyn CompositeShape<P, M>>[src]

The composite shape representation of self if applicable.

fn is_composite_shape(&self) -> bool[src]

Whether self uses a composite shape-based representation.

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, AABB<P>> for ConvexHull<P>[src]

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, BoundingSphere<P>> for ConvexHull<P>[src]

impl<P, M> RayCast<P, M> for ConvexHull<P> where
    P: Point,
    M: Isometry<P>, 
[src]

fn toi_with_ray(&self, m: &M, ray: &Ray<P>, solid: bool) -> Option<P::Real>[src]

Computes the time of impact between this transform shape and a ray.

fn toi_and_normal_and_uv_with_ray(
    &self,
    m: &M,
    ray: &Ray<P>,
    solid: bool
) -> Option<RayIntersection<P::Vector>>
[src]

Computes time of impact, normal, and texture coordinates (uv) between this transformed shape and a ray. Read more

fn intersects_ray(&self, m: &M, ray: &Ray<P>) -> bool[src]

Tests whether a ray intersects this transformed shape.

impl<P: Point, M: Isometry<P>> PointQuery<P, M> for ConvexHull<P>[src]

fn distance_to_point(&self, m: &M, pt: &P, solid: bool) -> P::Real[src]

Computes the minimal distance between a point and self transformed by m.

fn contains_point(&self, m: &M, pt: &P) -> bool[src]

Tests if the given point is inside of self transformed by m.

impl<P: PartialEq> PartialEq<ConvexHull<P>> for ConvexHull<P>[src]

impl<P: Clone> Clone for ConvexHull<P>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: Debug> Debug for ConvexHull<P>[src]

Auto Trait Implementations

impl<P> Send for ConvexHull<P> where
    P: Send

impl<P> Sync for ConvexHull<P> where
    P: Sync

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self