Click or drag to resize

Transform2d Methods

The Transform2d type exposes the following members.

Methods
  NameDescription
Public methodClone
Returns a deep copy of the transform. For languages that treat structures as value types, this can be accomplished by a simple assignment.
Public methodCompareTo
Compares this transform with another transform.

M00 has highest value, then M01, etc..

Public methodEquals(Object)
Determines if another object is a Transform2d and its value equals this transform value.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Transform2d)
Determines if another transform equals this transform value.
Public methodStatic memberFromAffineElements(Double)
Creates a transform from an array of six coefficients in (a, b, c, d, tx, ty) order.
Public methodStatic memberFromAffineElements(Single)
Creates a transform from an array of six coefficients in (a, b, c, d, tx, ty) order.
Public methodStatic memberFromAffineElements(Double, Double, Double, Double, Double, Double)
Creates a transform from the six coefficients used by the traditional 2d drawing APIs. See the remarks on ToAffineElements.
Public methodGetAffineElements
Gets the six coefficients used by the traditional 2d drawing APIs. See the remarks on ToAffineElements.
Public methodGetHashCode
Gets a non-unique hashing code for this transform.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMultiply
Multiplies (combines) two transformations.

This is the same as the * operator between two transformations.

Public methodStatic memberRotation(Double)
Constructs a new rotation transformation with the origin as the rotation center.
Public methodStatic memberRotation(Double, Point2d)
Constructs a new rotation transformation with a specified rotation center.
Public methodStatic memberRotation(Double, Double, Point2d)
Constructs a new rotation transformation from the sine and cosine of an angle and a specified rotation center.
Public methodStatic memberRotation(Vector2d, Vector2d, Point2d)
Constructs the rotation that maps one direction onto another while fixing a rotation center.
Public methodStatic memberScale(Point2d, Double)
Constructs a new uniform scaling transformation with a specified anchor point.
Public methodStatic memberScale(Point2d, Double, Double)
Constructs a new non-uniform scaling transformation with a specified anchor point.
Public methodToAffineElements
Gets the six coefficients used by the traditional 2d drawing APIs as an array in (a, b, c, d, tx, ty) order.
Public methodToString
Returns a string representation of this transform.
(Overrides ValueTypeToString.)
Public methodToTransform
Gets the 4x4 transformation that applies this 2d transformation to the x and y coordinates and leaves the z coordinate unchanged.
Public methodStatic memberTranslation(Vector2d)
Constructs a new translation (move) transformation.
Public methodStatic memberTranslation(Double, Double)
Constructs a new translation (move) transformation. Right column is (dx, dy).
Public methodTryGetInverse
Attempts to get the inverse transform of this transform.
Public methodStatic memberTryGetTransform2d(Transform, Transform2d)
Attempts to get the 2d transformation defined by the x and y rows and columns of a 4x4 transformation. This succeeds when transform is affine and maps the world xy plane to itself.
Public methodStatic memberTryGetTransform2d(Transform, Double, Transform2d)
Attempts to get the 2d transformation defined by the x and y rows and columns of a 4x4 transformation. This succeeds when transform is affine and maps the world xy plane to itself.
Top
See Also