Trait mgf::Convex [−][src]
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.
Implementors
impl Convex for AABB
impl Convex for OBB
impl Convex for Sphere
impl<'a, 'b, 'c, 'd, S1, S2> Convex for MinkowskiDiff<'a, 'b, S1, S2> where
S1: Convex + 'a,
S2: Convex + 'b,impl<'a, 'b, 'c, 'd, S1, S2> Convex<SupportPoint> for MinkowskiDiff<'a, 'b, S1, S2> where
S1: Convex + 'a,
S2: Convex + 'b,impl Convex for ConvexMesh