[−][src]Trait arcs::algorithms::ScaleNonUniform
Something who's dimensions can be scaled independently (the non-uniform bit) in the x and y directions.
Examples
use arcs_core::{primitives::Line, algorithms::ScaleNonUniform}; let original = Line::new(Point::zero(), Point::new(10.0, 10.0)); let scaled = original.scaled_non_uniform(2.0, -0.5); assert_eq!(scaled.start, Point::zero()); assert_eq!(scaled.end, Point::new(20.0, -5.0));
Required methods
fn scale_non_uniform(&mut self, factor_x: f64, factor_y: f64)
Scale the object in-place.
Provided methods
fn scaled_non_uniform(&self, factor_x: f64, factor_y: f64) -> Self where
Self: Clone,
Self: Clone,
Convenience method for getting a scaled copy of this object.
Implementors
impl<A> ScaleNonUniform for A where
A: AffineTransformable,
[src]
A: AffineTransformable,