Struct forgedthoughts::ft::ray_modifier::RayModifier
source · pub struct RayModifier {
pub op: RayModifierOp,
pub op_type: RayModifierType,
pub comp_modify: RayModifierComponent,
pub comp_with: RayModifierComponent,
pub frequency: F,
pub amplitude: F,
pub addend: F,
}Expand description
The type of the
Fields§
§op: RayModifierOp§op_type: RayModifierType§comp_modify: RayModifierComponent§comp_with: RayModifierComponent§frequency: F§amplitude: F§addend: FImplementations§
source§impl RayModifier
impl RayModifier
pub fn new( modify: String, op_string: String, op_type_string: String, with: String ) -> Self
pub fn generate(&self, p: F3) -> F3
pub fn get_frequency(&mut self) -> F
pub fn set_frequency(&mut self, new_val: F)
pub fn get_amplitude(&mut self) -> F
pub fn set_amplitude(&mut self, new_val: F)
pub fn get_addend(&mut self) -> F
pub fn set_addend(&mut self, new_val: F)
pub fn get_op(&mut self) -> String
pub fn set_op(&mut self, new_val: String)
pub fn get_type(&mut self) -> String
pub fn set_type(&mut self, new_val: String)
Trait Implementations§
source§impl Clone for RayModifier
impl Clone for RayModifier
source§fn clone(&self) -> RayModifier
fn clone(&self) -> RayModifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RayModifier
impl Debug for RayModifier
source§impl PartialEq<RayModifier> for RayModifier
impl PartialEq<RayModifier> for RayModifier
source§fn eq(&self, other: &RayModifier) -> bool
fn eq(&self, other: &RayModifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.