Struct smallpt::triangle::Triangle [−][src]
pub struct Triangle { pub p0: Vector3<f64>, pub p1: Vector3<f64>, pub p2: Vector3<f64>, pub normal: Vector3<f64>, pub material: Material, }
Fields
p0: Vector3<f64>
p1: Vector3<f64>
p2: Vector3<f64>
normal: Vector3<f64>
material: Material
Methods
impl Triangle
[src]
impl Triangle
pub fn new(
p0: Vector3<f64>,
p1: Vector3<f64>,
p2: Vector3<f64>,
material: Material
) -> Triangle
[src]
pub fn new(
p0: Vector3<f64>,
p1: Vector3<f64>,
p2: Vector3<f64>,
material: Material
) -> Triangle
Trait Implementations
impl Copy for Triangle
[src]
impl Copy for Triangle
impl Clone for Triangle
[src]
impl Clone for Triangle
fn clone(&self) -> Triangle
[src]
fn clone(&self) -> Triangle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Traceable for Triangle
[src]
impl Traceable for Triangle