Struct makepad_vector::geometry::LinearTransformation
source · [−]Fields
x: Vector
y: Vector
Implementations
sourceimpl LinearTransformation
impl LinearTransformation
pub fn new(x: Vector, y: Vector) -> LinearTransformation
pub fn identity() -> LinearTransformation
pub fn scaling(v: Vector) -> LinearTransformation
pub fn uniform_scaling(k: f64) -> LinearTransformation
pub fn scale(self, v: Vector) -> LinearTransformation
pub fn uniform_scale(self, k: f64) -> LinearTransformation
pub fn compose(self, other: LinearTransformation) -> LinearTransformation
Trait Implementations
sourceimpl Clone for LinearTransformation
impl Clone for LinearTransformation
sourcefn clone(&self) -> LinearTransformation
fn clone(&self) -> LinearTransformation
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 LinearTransformation
impl Debug for LinearTransformation
sourceimpl PartialEq<LinearTransformation> for LinearTransformation
impl PartialEq<LinearTransformation> for LinearTransformation
sourcefn eq(&self, other: &LinearTransformation) -> bool
fn eq(&self, other: &LinearTransformation) -> bool
sourceimpl Transformation for LinearTransformation
impl Transformation for LinearTransformation
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 LinearTransformation
impl StructuralPartialEq for LinearTransformation
Auto Trait Implementations
impl RefUnwindSafe for LinearTransformation
impl Send for LinearTransformation
impl Sync for LinearTransformation
impl Unpin for LinearTransformation
impl UnwindSafe for LinearTransformation
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