#[repr(C)]pub struct AffineTransformation {
pub xy: LinearTransformation,
pub z: Vector,
}Fields§
§xy: LinearTransformation§z: VectorImplementations§
§impl AffineTransformation
impl AffineTransformation
pub fn new(xy: LinearTransformation, z: Vector) -> AffineTransformation
pub fn identity() -> AffineTransformation
pub fn scaling(v: Vector) -> AffineTransformation
pub fn uniform_scaling(k: f64) -> AffineTransformation
pub fn translation(v: Vector) -> AffineTransformation
pub fn scale(self, v: Vector) -> AffineTransformation
pub fn uniform_scale(self, k: f64) -> AffineTransformation
pub fn translate(self, v: Vector) -> AffineTransformation
Trait Implementations§
§impl Clone for AffineTransformation
impl Clone for AffineTransformation
§fn clone(&self) -> AffineTransformation
fn clone(&self) -> AffineTransformation
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 more§impl Debug for AffineTransformation
impl Debug for AffineTransformation
§impl PartialEq<AffineTransformation> for AffineTransformation
impl PartialEq<AffineTransformation> for AffineTransformation
§fn eq(&self, other: &AffineTransformation) -> bool
fn eq(&self, other: &AffineTransformation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl Transformation for AffineTransformation
impl Transformation for AffineTransformation
§fn transform_point(&self, p: Point) -> Point
fn transform_point(&self, p: Point) -> Point
Applies
self to the given point.§fn transform_vector(&self, v: Vector) -> Vector
fn transform_vector(&self, v: Vector) -> Vector
Applies
self to the given vector.impl Copy for AffineTransformation
impl StructuralPartialEq for AffineTransformation
Auto Trait Implementations§
impl RefUnwindSafe for AffineTransformation
impl Send for AffineTransformation
impl Sync for AffineTransformation
impl Unpin for AffineTransformation
impl UnwindSafe for AffineTransformation
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