[−][src]Struct pathfinder_geometry::transform2d::Transform2F
An affine transform, optimized with SIMD.
Fields
matrix: Matrix2x2F
vector: Vector2F
Methods
impl Transform2F
[src]
pub fn from_scale<S>(scale: S) -> Transform2F where
S: IntoVector2F,
[src]
S: IntoVector2F,
pub fn from_rotation(theta: f32) -> Transform2F
[src]
pub fn from_rotation_vector(vector: UnitVector) -> Transform2F
[src]
pub fn from_translation(vector: Vector2F) -> Transform2F
[src]
pub fn from_scale_rotation_translation<S>(
scale: S,
theta: f32,
translation: Vector2F
) -> Transform2F where
S: IntoVector2F,
[src]
scale: S,
theta: f32,
translation: Vector2F
) -> Transform2F where
S: IntoVector2F,
pub fn row_major(
m11: f32,
m12: f32,
m21: f32,
m22: f32,
m31: f32,
m32: f32
) -> Transform2F
[src]
m11: f32,
m12: f32,
m21: f32,
m22: f32,
m31: f32,
m32: f32
) -> Transform2F
pub fn to_3d(&self) -> Transform4F
[src]
pub fn is_identity(&self) -> bool
[src]
pub fn extract_scale(&self) -> Vector2F
[src]
Extracts the scale from this matrix.
pub fn m11(&self) -> f32
[src]
pub fn m21(&self) -> f32
[src]
pub fn m12(&self) -> f32
[src]
pub fn m22(&self) -> f32
[src]
pub fn m31(&self) -> f32
[src]
pub fn m32(&self) -> f32
[src]
pub fn translate(&self, vector: Vector2F) -> Transform2F
[src]
pub fn rotate(&self, theta: f32) -> Transform2F
[src]
pub fn scale<S>(&self, scale: S) -> Transform2F where
S: IntoVector2F,
[src]
S: IntoVector2F,
pub fn translation(&self) -> Vector2F
[src]
Returns the translation part of this matrix.
This decomposition assumes that scale, rotation, and translation are applied in that order.
pub fn rotation(&self) -> f32
[src]
Returns the rotation angle of this matrix.
This decomposition assumes that scale, rotation, and translation are applied in that order.
pub fn scale_factor(&self) -> f32
[src]
Returns the scale factor of this matrix.
This decomposition assumes that scale, rotation, and translation are applied in that order.
pub fn inverse(&self) -> Transform2F
[src]
Trait Implementations
impl Clone for Transform2F
[src]
fn clone(&self) -> Transform2F
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Transform2F
[src]
impl Debug for Transform2F
[src]
impl Default for Transform2F
[src]
fn default() -> Transform2F
[src]
impl Mul<LineSegment2F> for Transform2F
[src]
type Output = LineSegment2F
The resulting type after applying the *
operator.
fn mul(self, line_segment: LineSegment2F) -> LineSegment2F
[src]
impl Mul<RectF> for Transform2F
[src]
type Output = RectF
The resulting type after applying the *
operator.
fn mul(self, rect: RectF) -> RectF
[src]
impl Mul<Transform2F> for Transform2F
[src]
type Output = Transform2F
The resulting type after applying the *
operator.
fn mul(self, other: Transform2F) -> Transform2F
[src]
impl Mul<Vector2F> for Transform2F
[src]
type Output = Vector2F
The resulting type after applying the *
operator.
fn mul(self, vector: Vector2F) -> Vector2F
[src]
impl MulAssign<Transform2F> for Transform2F
[src]
fn mul_assign(&mut self, other: Transform2F)
[src]
impl PartialEq<Transform2F> for Transform2F
[src]
fn eq(&self, other: &Transform2F) -> bool
[src]
fn ne(&self, other: &Transform2F) -> bool
[src]
impl StructuralPartialEq for Transform2F
[src]
Auto Trait Implementations
impl RefUnwindSafe for Transform2F
impl Send for Transform2F
impl Sync for Transform2F
impl Unpin for Transform2F
impl UnwindSafe for Transform2F
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,