Struct makepad_vector::geometry::AffineTransformation
source · [−]#[repr(C)]pub struct AffineTransformation {
pub xy: LinearTransformation,
pub z: Vector,
}
Fields
xy: LinearTransformation
z: Vector
Implementations
sourceimpl 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
sourceimpl Clone for AffineTransformation
impl Clone for AffineTransformation
sourcefn clone(&self) -> AffineTransformation
fn clone(&self) -> AffineTransformation
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AffineTransformation
impl Debug for AffineTransformation
sourceimpl PartialEq<AffineTransformation> for AffineTransformation
impl PartialEq<AffineTransformation> for AffineTransformation
sourcefn eq(&self, other: &AffineTransformation) -> bool
fn eq(&self, other: &AffineTransformation) -> bool
sourceimpl Transformation for AffineTransformation
impl Transformation for AffineTransformation
sourcefn transform_point(&self, p: Point) -> Point
fn transform_point(&self, p: Point) -> Point
Applies
self
to the given point
.sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more