[][src]Trait mgf::Convex

pub trait Convex<Support = Point3<f32>> where
    Support: Into<Point3<f32>>, 
{ fn support(&self, axis: Vector3<f32>) -> Support; }

A type that represents a convex volume.

Required methods

fn support(&self, axis: Vector3<f32>) -> Support

Returns the point on the object that produces the greatest dot product with the supplied axis. The axis is expected to be normalized.

Loading content...

Implementors

impl Convex<Point3<f32>> for AABB[src]

impl Convex<Point3<f32>> for OBB[src]

impl Convex<Point3<f32>> for Sphere[src]

impl Convex<Point3<f32>> for Capsule[src]

impl Convex<Point3<f32>> for ConvexMesh[src]

impl<'a, 'b, 'c, 'd, S1, S2> Convex<SupportPoint> for MinkowskiDiff<'a, 'b, S1, S2> where
    S1: Convex + 'a,
    S2: Convex + 'b, 
[src]

impl<'a, 'b, 'c, 'd, S1, S2> Convex<Point3<f32>> for MinkowskiDiff<'a, 'b, S1, S2> where
    S1: Convex + 'a,
    S2: Convex + 'b, 
[src]

Loading content...