Struct quicksilver::geom::Transform
[−]
[src]
pub struct Transform(_);
A 2D transformation represented by a matrix
Methods
impl Transform
[src]
fn identity() -> Transform
[src]
Create an identity transformation
fn rotate(angle: f32) -> Transform
[src]
Create a rotation transformation
fn translate(vec: Vector) -> Transform
[src]
Create a translation transformation
fn scale(vec: Vector) -> Transform
[src]
Create a scale transformation
fn inverse(&self) -> Transform
[src]
Find the inverse of a Transform
Trait Implementations
impl Clone for Transform
[src]
fn clone(&self) -> Transform
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Transform
[src]
impl Debug for Transform
[src]
impl Mul<Transform> for Transform
[src]
Concat two transforms A and B such that A * B * v = A * (B * v)
type Output = Transform
The resulting type after applying the *
operator.
fn mul(self, other: Transform) -> Transform
[src]
Performs the *
operation.
impl Mul<Vector> for Transform
[src]
Transform a vector
type Output = Vector
The resulting type after applying the *
operator.
fn mul(self, other: Vector) -> Vector
[src]
Performs the *
operation.
impl Mul<f32> for Transform
[src]
type Output = Transform
The resulting type after applying the *
operator.
fn mul(self, other: f32) -> Transform
[src]
Performs the *
operation.
impl Display for Transform
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for Transform
[src]
impl PartialEq for Transform
[src]
fn eq(&self, other: &Transform) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.