[−][src]Struct smallpt::triangle::Triangle
Fields
p0: Vector3<f32>
p1: Vector3<f32>
p2: Vector3<f32>
normal: Vector3<f32>
n0: Vector3<f32>
n1: Vector3<f32>
n2: Vector3<f32>
material: Material
Methods
impl Triangle
[src]
pub fn new(
p0: Vector3<f32>,
p1: Vector3<f32>,
p2: Vector3<f32>,
material: Material
) -> Triangle
[src]
p0: Vector3<f32>,
p1: Vector3<f32>,
p2: Vector3<f32>,
material: Material
) -> Triangle
pub fn new_ext(
p0: Vector3<f32>,
p1: Vector3<f32>,
p2: Vector3<f32>,
n0: Vector3<f32>,
n1: Vector3<f32>,
n2: Vector3<f32>,
material: Material
) -> Triangle
[src]
p0: Vector3<f32>,
p1: Vector3<f32>,
p2: Vector3<f32>,
n0: Vector3<f32>,
n1: Vector3<f32>,
n2: Vector3<f32>,
material: Material
) -> Triangle
Trait Implementations
impl BHShape for Triangle
[src]
fn set_bh_node_index(&mut self, index: usize)
[src]
fn bh_node_index(&self) -> usize
[src]
impl Bounded for Triangle
[src]
impl Clone for Triangle
[src]
impl Copy for Triangle
[src]
impl Traceable for Triangle
[src]
fn intersect(&self, r: &Ray, result: &mut Hit) -> bool
[src]
fn get_primitive_type(&self) -> PrimitiveType
[src]
Auto Trait Implementations
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnwindSafe for Triangle
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<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,