Struct rs_math3d::primitives::Tri3[][src]

#[repr(C)]pub struct Tri3<T: FloatScalar> { /* fields omitted */ }

Triangle

Implementations

impl<T: FloatScalar> Tri3<T>[src]

pub fn new(vertices: [Vector3<T>; 3]) -> Self[src]

pub fn vertices(&self) -> &[Vector3<T>; 3][src]

pub fn barycentric_coordinates(&self, pt: &Vector3<T>) -> Vector3<T>[src]

Trait Implementations

impl<T: Clone + FloatScalar> Clone for Tri3<T>[src]

impl<T: Copy + FloatScalar> Copy for Tri3<T>[src]

impl<T: FloatScalar> Intersect<Tri3<T>> for Sphere3<T>[src]

impl<T: FloatScalar> Intersection<(T, Vector3<T>), Tri3<T>> for Ray<T, Vector3<T>>[src]

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

Auto Trait Implementations

impl<T> Send for Tri3<T> where
    T: Send
[src]

impl<T> Sync for Tri3<T> where
    T: Sync
[src]

impl<T> Unpin for Tri3<T> where
    T: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.