Transform2D Methods |
The Transform2D type exposes the following members.
| Name | Description | |
|---|---|---|
| AffineInverse |
Returns the inverse of the transform, under the assumption that
the transformation is composed of rotation, scaling, and translation.
| |
| BasisXform |
Returns a vector transformed (multiplied) by the basis matrix.
This method does not account for translation (the origin vector).
| |
| BasisXformInv |
Returns a vector transformed (multiplied) by the inverse basis matrix.
This method does not account for translation (the origin vector).
Note: This results in a multiplication by the inverse of the
basis matrix only if it represents a rotation-reflection.
| |
| Equals(Object) | (Overrides ValueTypeEquals(Object).) | |
| Equals(Transform2D) | ||
| GetHashCode | (Overrides ValueTypeGetHashCode.) | |
| GetType | (Inherited from Object.) | |
| InterpolateWith |
Interpolates this transform to the other `transform` by `weight`.
| |
| Inverse |
Returns the inverse of the transform, under the assumption that
the transformation is composed of rotation and translation
(no scaling, use AffineInverse for transforms with scaling).
| |
| IsEqualApprox |
Returns true if this transform and `other` are approximately equal, by running
IsEqualApprox(Vector2) on each component.
| |
| Orthonormalized |
Returns the transform with the basis orthogonal (90 degrees),
and normalized axis vectors (scale of 1 or -1).
| |
| Rotated |
Rotates the transform by `phi` (in radians), using matrix multiplication.
| |
| Scaled |
Scales the transform by the given scaling factor, using matrix multiplication.
| |
| ToString | (Overrides ValueTypeToString.) | |
| ToString(String) | ||
| Translated |
Translates the transform by the given `offset`,
relative to the transform's basis vectors.
Unlike Rotated(Single) and Scaled(Vector2),
this does not use matrix multiplication.
| |
| Xform |
Returns a vector transformed (multiplied) by this transformation matrix.
| |
| XformInv |
Returns a vector transformed (multiplied) by the inverse transformation matrix.
|