Trait mgf::Convex
[−]
[src]
pub trait Convex { fn support(&self, axis: Vector3<f32>) -> Point3<f32>; }
A type that represents a convex volume.
Required Methods
fn support(&self, axis: Vector3<f32>) -> Point3<f32>
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 Convex for ConvexMesh