#[repr(C)]pub struct AffineTransformation {
pub xy: LinearTransformation,
pub z: Vector,
}
Fields§
§xy: LinearTransformation
§z: Vector
Implementations§
Source§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§
Source§impl Clone for AffineTransformation
impl Clone for AffineTransformation
Source§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 moreSource§impl Debug for AffineTransformation
impl Debug for AffineTransformation
Source§impl PartialEq for AffineTransformation
impl PartialEq for AffineTransformation
Source§impl Transformation for AffineTransformation
impl Transformation for AffineTransformation
Source§fn transform_point(&self, p: Point) -> Point
fn transform_point(&self, p: Point) -> Point
Applies
self
to the given point
.Source§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 Freeze for AffineTransformation
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