Transform2Bvr Class

Creates an object that represents a two-dimensional transformation behavior. The behavior consists of a 3 by 2 matrix of number behaviors that can be applied to two-dimensional point behaviors to translate, scale, rotate or skew the location of the point, and can be applied to two-dimensional vector behaviors to scale, rotate, or skew the length and/or direction of the vector.

Because matrix values are number behaviors (NumberBvr objects), the transformation behavior may change over time as the number behaviors change. For more information about behaviors, see the Behavior class.

For relevant methods and fields from the Statics class, see the following topics.

Transform2Bvr Methods

inverse Creates a transformation behavior that is the inverse of the original transformation.
isSingular Creates a Boolean behavior that indicates whether the transform is singular.
newUninitBvr Enables you to refer to a Transform2Bvr behavior before that behavior has been defined.

inverse

Transform2Bvr Class

Creates a transformation behavior that is the inverse of the original transformation.

Syntax

public Transform2Bvr inverse( );

Return Value

Returns the Transform2Bvr object.

Remarks

The inverse transformation is useful for removing the effects of the original transformation from a point or vector behavior. Some transforms have no inverse. To characterize transforms of an unknown type, use isSingular.

isSingular

Transform2Bvr Class

Creates a Boolean behavior that indicates whether the transform is singular. A singular transform is one that has no inverse.

Syntax

public BooleanBvr isSingular( );

Return Value

Returns the BooleanBvr object. This object's value is true if the transform is singular; otherwise, it is false.

newUninitBvr

Transform2Bvr Class

Enables you to refer to a Transform2Bvr behavior before that behavior has been defined. With this method you can create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.

Syntax

public static Transform2Bvr newUninitBvr( );

Return Value

Returns the Transform2Bvr object.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.