Click or drag to resize

Transform2D Methods

The Transform2D type exposes the following members.

Methods
  NameDescription
Public methodAffineInverse
Returns the inverse of the transform, under the assumption that the transformation is composed of rotation, scaling, and translation.
Public methodBasisXform
Returns a vector transformed (multiplied) by the basis matrix. This method does not account for translation (the origin vector).
Public methodBasisXformInv
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.
Public methodEquals(Object) (Overrides ValueTypeEquals(Object).)
Public methodEquals(Transform2D)
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodInterpolateWith
Interpolates this transform to the other `transform` by `weight`.
Public methodInverse
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).
Public methodIsEqualApprox
Returns true if this transform and `other` are approximately equal, by running IsEqualApprox(Vector2) on each component.
Public methodOrthonormalized
Returns the transform with the basis orthogonal (90 degrees), and normalized axis vectors (scale of 1 or -1).
Public methodRotated
Rotates the transform by `phi` (in radians), using matrix multiplication.
Public methodScaled
Scales the transform by the given scaling factor, using matrix multiplication.
Public methodToString (Overrides ValueTypeToString.)
Public methodToString(String)
Public methodTranslated
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.
Public methodXform
Returns a vector transformed (multiplied) by this transformation matrix.
Public methodXformInv
Returns a vector transformed (multiplied) by the inverse transformation matrix.
Top
See Also