DirectAnimation Animated Header --DATransform2 Class DirectAnimation Animated Header --DATransform2 Class* Microsoft DirectAnimation SDK
*Index  *Topic Contents
*Previous Topic: DAString Class
*Next Topic: DATransform3 Class

DATransform2 Class


DATransform2 objects can be applied to two-dimensional point objects to translate, scale, rotate or skew the location of the point, and can be applied to two-dimensional vector objects to scale, rotate, or skew the length and/or direction of the vector.

This class inherits from DABehavior.

DATransform2 Functions

bullet1.gifInverse


Inverse

DATransform2 Class

Creates a transformation that is the inverse of the original transformation. The inverse transformation is useful for removing the effects of the original transformation from a point or vector. Some transforms have no inverse. Use IsSingular to characterize transforms of an unknown type.

transform2Obj.Inverse( )

Return Values

Returns a DATransform2 object representing the newly created transformation.

DATransform2 Properties

bullet1.gifIsSingular


IsSingular

DATransform2 Class

A read-only property with a DABoolean value that indicates whether the transform is singular or not. A singular transform is one that has no inverse. The value is TRUE if the transform is singular; otherwise, it is FALSE.

transform2Obj.IsSingular

Relevant Functions from the DAStatics Class

The following functions are defined in the DAStatics class and are most relevant to objects of type DATransform2.

lib.Compose2(xf1, xf2)

lib.Compose2Array(xforms)

lib.FollowPath(path, duration)

lib.FollowPathEval(path, evaluator)

lib.FollowPathAngle(path, duration)

lib.FollowPathAngleEval(path,evaluator)

lib.FollowPathAngleUpright(path, duration)

lib.FollowPathAngleUprightEval(path, evaluator)

lib.Rotate2Anim(radians)

lib.Rotate2(radians)

lib.Rotate2-Degrees(degrees)

lib.Rotate2Rate(radians)

lib.Rotate2RateDegrees(degrees)

lib.Scale2Anim(sx, sy)

lib.Scale2(sx, sy)

lib.Scale2Rate(x, y)

lib.Scale2UniformAnim(uniformFactor)

lib.Scale2Uniform(uniformFactor)

lib.Scale2UniformRate(rate)

lib.Scale2Vector(v)

lib.Transform3x2Anim(matrix)

lib.Translate2Anim(tx, ty)

lib.Translate2(tx, ty)

lib.Translate2Point(loc)

lib.Translate2Rate(x, y)

lib.Translate2Vector(v)

lib.XShear2Anim(a)

lib.XShear2(a)

lib.XShear2Rate(rate)

lib.YShear2Anim(a)

lib.YShear2(a)

lib.YShear2Rate(rate)

Relevant Properties from the DAStatics Class

The following properties are defined in the DAStatics class and are most relevant to objects of type DATransform2.

lib.IdentityTransform2

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page