Struct smallpt::rectangle::Rectangle [−][src]
pub struct Rectangle { pub position: Vector3<f64>, pub normal: Vector3<f64>, pub left: Vector3<f64>, pub up: Vector3<f64>, pub width: f64, pub height: f64, pub material: Material, }
Fields
position: Vector3<f64>
normal: Vector3<f64>
left: Vector3<f64>
up: Vector3<f64>
width: f64
height: f64
material: Material
Methods
impl Rectangle
[src]
impl Rectangle
pub fn new(
position: Vector3<f64>,
normal: Vector3<f64>,
left: Vector3<f64>,
up: Vector3<f64>,
width: f64,
height: f64,
material: Material
) -> Rectangle
[src]
pub fn new(
position: Vector3<f64>,
normal: Vector3<f64>,
left: Vector3<f64>,
up: Vector3<f64>,
width: f64,
height: f64,
material: Material
) -> Rectangle
Trait Implementations
impl Copy for Rectangle
[src]
impl Copy for Rectangle
impl Clone for Rectangle
[src]
impl Clone for Rectangle
fn clone(&self) -> Rectangle
[src]
fn clone(&self) -> Rectangle
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 Rectangle
[src]
impl Traceable for Rectangle