pub trait Transformed: Sized {
Show 16 methods
// Required methods
fn append_transform(self, transform: Matrix2d) -> Self;
fn prepend_transform(self, transform: Matrix2d) -> Self;
fn trans(self, x: Scalar, y: Scalar) -> Self;
fn rot_rad(self, angle: Scalar) -> Self;
fn orient(self, x: Scalar, y: Scalar) -> Self;
fn scale(self, sx: Scalar, sy: Scalar) -> Self;
fn shear(self, x: Scalar, y: Scalar) -> Self;
// Provided methods
fn rot_deg(self, angle: Scalar) -> Self { ... }
fn trans_pos<P: Into<Vec2d>>(self, pos: P) -> Self { ... }
fn orient_pos<P: Into<Vec2d>>(self, pos: P) -> Self { ... }
fn scale_pos<P: Into<Vec2d>>(self, pos: P) -> Self { ... }
fn zoom(self, s: Scalar) -> Self { ... }
fn flip_v(self) -> Self { ... }
fn flip_h(self) -> Self { ... }
fn flip_hv(self) -> Self { ... }
fn shear_pos<P: Into<Vec2d>>(self, pos: P) -> Self { ... }
}
Expand description
Implemented by contexts that can transform.
Required Methods§
Sourcefn append_transform(self, transform: Matrix2d) -> Self
fn append_transform(self, transform: Matrix2d) -> Self
Appends transform to the current one.
Sourcefn prepend_transform(self, transform: Matrix2d) -> Self
fn prepend_transform(self, transform: Matrix2d) -> Self
Prepends transform to the current one.
Provided Methods§
Sourcefn orient_pos<P: Into<Vec2d>>(self, pos: P) -> Self
fn orient_pos<P: Into<Vec2d>>(self, pos: P) -> Self
Orients x axis to look at point locally.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.