Struct mgf::Simplex [−][src]
pub struct Simplex<Point = Point3<f32>> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static, { /* fields omitted */ }
Methods
impl<Point> Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static + Debug,
[src]
impl<Point> Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static + Debug,
pub fn closest_point_to_origin<S>(&mut self, shape: &S) -> Point3<f32> where
S: Convex<Point>,
[src]
pub fn closest_point_to_origin<S>(&mut self, shape: &S) -> Point3<f32> where
S: Convex<Point>,
Finds the closest point on the shape to the origin
impl Simplex<SupportPoint>
[src]
impl Simplex<SupportPoint>
pub fn compute_contact<S1, S2>(&self, s1: &S1, s2: &S2) -> Contact where
S1: Convex,
S2: Convex,
[src]
pub fn compute_contact<S1, S2>(&self, s1: &S1, s2: &S2) -> Contact where
S1: Convex,
S2: Convex,
Generates a contact from a simplex. This uses the EPA algorithm. Based on the description here: http://hacktank.net/blog/?p=119
Trait Implementations
impl<Point> Debug for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static + Debug,
[src]
impl<Point> Debug for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static + Debug,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Point> From<[Point; 1]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<[Point; 1]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
impl<Point> From<Point> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<Point> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
impl<Point> From<[Point; 2]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<[Point; 2]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
impl<Point> From<(Point, Point)> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<(Point, Point)> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
impl<Point> From<[Point; 3]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<[Point; 3]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
impl<Point> From<(Point, Point, Point)> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<(Point, Point, Point)> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
impl<Point> From<[Point; 4]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<[Point; 4]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
impl<Point> From<(Point, Point, Point, Point)> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
impl<Point> From<(Point, Point, Point, Point)> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,