pub struct Tri3<T: FloatScalar> { /* private fields */ }Expand description
A triangle defined by three vertices.
Implementations§
Source§impl<T: FloatScalar> Tri3<T>
impl<T: FloatScalar> Tri3<T>
Sourcepub fn barycentric_coordinates(&self, pt: &Vector3<T>) -> Vector3<T>
pub fn barycentric_coordinates(&self, pt: &Vector3<T>) -> Vector3<T>
Computes barycentric coordinates of a point in the triangle plane.
Trait Implementations§
Source§impl<T: FloatScalar> Intersection<(T, Vector3<T>), Tri3<T>> for Ray<T, Vector3<T>>
Ray-Triangle Intersection Test Routines
Different optimizations of my and Ben Trumbore’s
code from journals of graphics tools (JGT)
http://www.acm.org/jgt/
by Tomas Moller, May 2000
impl<T: FloatScalar> Intersection<(T, Vector3<T>), Tri3<T>> for Ray<T, Vector3<T>>
Ray-Triangle Intersection Test Routines Different optimizations of my and Ben Trumbore’s code from journals of graphics tools (JGT) http://www.acm.org/jgt/ by Tomas Moller, May 2000
impl<T: Copy + FloatScalar> Copy for Tri3<T>
Auto Trait Implementations§
impl<T> Freeze for Tri3<T>where
T: Freeze,
impl<T> RefUnwindSafe for Tri3<T>where
T: RefUnwindSafe,
impl<T> Send for Tri3<T>where
T: Send,
impl<T> Sync for Tri3<T>where
T: Sync,
impl<T> Unpin for Tri3<T>where
T: Unpin,
impl<T> UnwindSafe for Tri3<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more