Struct barnsley::transform::MoebiusTransform
source · pub struct MoebiusTransform {
pub a: Complex<f32>,
pub b: Complex32,
pub c: Complex32,
pub d: Complex32,
pub base_color: Color,
pub weight: f32,
}Fields§
§a: Complex<f32>§b: Complex32§c: Complex32§d: Complex32§base_color: Color§weight: f32Implementations§
Trait Implementations§
source§impl Clone for MoebiusTransform
impl Clone for MoebiusTransform
source§fn clone(&self) -> MoebiusTransform
fn clone(&self) -> MoebiusTransform
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 MoebiusTransform
impl Debug for MoebiusTransform
source§impl Default for MoebiusTransform
impl Default for MoebiusTransform
source§impl<'de> Deserialize<'de> for MoebiusTransform
impl<'de> Deserialize<'de> for MoebiusTransform
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MoebiusTransform> for Transform
impl From<MoebiusTransform> for Transform
source§fn from(v: MoebiusTransform) -> Transform
fn from(v: MoebiusTransform) -> Transform
Converts to this type from the input type.
source§impl Morphable<MoebiusTransform> for MoebiusTransform
impl Morphable<MoebiusTransform> for MoebiusTransform
source§impl PartialEq for MoebiusTransform
impl PartialEq for MoebiusTransform
source§fn eq(&self, other: &MoebiusTransform) -> bool
fn eq(&self, other: &MoebiusTransform) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MoebiusTransform
impl Serialize for MoebiusTransform
source§impl Transformable for MoebiusTransform
impl Transformable for MoebiusTransform
source§fn transform_point(&self, point: Point) -> Point
fn transform_point(&self, point: Point) -> Point
Applies the transformation to a point
source§fn get_weight(&self) -> f32
fn get_weight(&self) -> f32
Retreives the transforms weight
source§fn get_base_color(&self) -> Color
fn get_base_color(&self) -> Color
Gets the transforms base color, i.e. the color of the transform that gets repeatedly mixed
source§fn transform_color(&self, current_color: Color) -> Color
fn transform_color(&self, current_color: Color) -> Color
Transform a color using the
base_color and the current_color.source§impl TryInto<MoebiusTransform> for Transform
impl TryInto<MoebiusTransform> for Transform
impl Copy for MoebiusTransform
impl StructuralPartialEq for MoebiusTransform
Auto Trait Implementations§
impl RefUnwindSafe for MoebiusTransform
impl Send for MoebiusTransform
impl Sync for MoebiusTransform
impl Unpin for MoebiusTransform
impl UnwindSafe for MoebiusTransform
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().