[−][src]Struct mgf::Simplex
Methods
impl<Point> Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static + Debug,
[src]
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]
S: Convex<Point>,
Finds the closest point on the shape to the origin
impl Simplex<SupportPoint>
[src]
pub fn compute_contact<S1, S2>(&self, s1: &S1, s2: &S2) -> Contact where
S1: Convex,
S2: Convex,
[src]
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]
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static + Debug,
impl<Point> From<[Point; 1]> for Simplex<Point> where
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
[src]
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]
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]
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]
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]
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]
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]
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]
Point: Into<Point3<f32>> + From<Point3<f32>> + Copy + Clone + 'static,
Auto Trait Implementations
impl<Point = Point3<f32>> !RefUnwindSafe for Simplex<Point>
impl<Point = Point3<f32>> !Send for Simplex<Point>
impl<Point = Point3<f32>> !Sync for Simplex<Point>
impl<Point> Unpin for Simplex<Point> where
Point: Unpin,
Point: Unpin,
impl<Point = Point3<f32>> !UnwindSafe for Simplex<Point>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,