Struct rust_pathtracer::fx::F3
source · pub struct F3 {
pub x: F,
pub y: F,
pub z: F,
}Expand description
F3
Fields§
§x: F§y: F§z: FImplementations§
source§impl F3
impl F3
pub fn from(v: F3) -> Self
pub fn zeros() -> Self
pub fn new_x(x: F) -> Self
pub fn new(x: F, y: F, z: F) -> Self
pub fn color(color: String) -> Self
pub fn get_x(&mut self) -> F
pub fn set_x(&mut self, new_val: F)
pub fn get_y(&mut self) -> F
pub fn set_y(&mut self, new_val: F)
pub fn get_z(&mut self) -> F
pub fn set_z(&mut self, new_val: F)
pub fn dot(&self, other: &F3) -> F
pub fn cross(&self, other: &F3) -> F3
pub fn mult_f(&self, other: &F) -> F3
pub fn div_f(&self, other: &F) -> F3
pub fn max_f(&self, other: &F) -> F3
pub fn to_linear(&mut self) -> F3
pub fn to_gamma(&mut self) -> F3
Trait Implementations§
source§impl AddAssign<F3> for F3
impl AddAssign<F3> for F3
source§fn add_assign(&mut self, other: F3)
fn add_assign(&mut self, other: F3)
Performs the
+= operation. Read moresource§impl DivAssign<F3> for F3
impl DivAssign<F3> for F3
source§fn div_assign(&mut self, other: F3)
fn div_assign(&mut self, other: F3)
Performs the
/= operation. Read moresource§impl SubAssign<F3> for F3
impl SubAssign<F3> for F3
source§fn sub_assign(&mut self, other: F3)
fn sub_assign(&mut self, other: F3)
Performs the
-= operation. Read more