Creates a two-dimensional transformation behavior that is a composition of the given transformation behaviors.
public static Transform2Bvr compose(
Transform2Bvr xf1,
Transform2Bvr xf2
);
Returns the Transform2Bvr object.
Composing a transform is equivalent to first applying xf2 and then applying xf1. In other words:
im.transform(compose(xf1, xf2) == im.transform(xf2).transform(xf1)
Creates a two-dimensional transformation behavior that is a composition of the Transform2Bvr objects included in the array.
public static Transform2Bvr compose2Array(
Transform2Bvr[] xforms
);
Returns the Transform2Bvr object.
Composing a transform is equivalent to first applying xfn, then applying xfn-1 and so on.
Creates a Transform2Bvr object that is a translation (from the origin) that follows a 2-D vector drawing path. The Path2Bvr object is converted into the equivalent translation transform.
public static Transform2Bvr followPath(
Path2Bvr path,
NumberBvr evaluator
);
Returns the Transform2Bvr object.
Creates a Transform2Bvr object that is equal to the angle of the path's tangent while it is being traversed, translated by its position. This is equivalent to rotating the position by its derivative.
public static Transform2Bvr followPathAngle(
Path2Bvr path,
NumberBvr evaluator
);
Returns the Transform2Bvr object.
Creates a Transform2Bvr object that is equal to the angle of the path's tangent while it is being traversed, translated by its position. This is equivalent to rotating the position by its derivative, except that the angle that is perpendicular to the X-axis (in local coordinates) will always be less than 180 degrees.
public static Transform2Bvr followPathAngleUpright(
Path2Bvr path,
NumberBvr evaluator
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that, when applied to any two-dimensional object, rotates it by the given angle (expressed in radians).
public static Transform2Bvr rotate(
NumberBvr radians
);
Returns the Transform2Bvr object.
Rotations are counter-clockwise.
Creates a two-dimensional transformation behavior that, when applied to any two-dimensional object, rotates it by the given angle (expressed in degrees).
public static Transform2Bvr rotateDegrees(
double degrees
);
Returns the Transform2Bvr object.
Rotations are counter-clockwise.
Creates a two-dimensional transformation behavior that, when applied to any two-dimensional object, rotates it by the given angle (expressed in radians). This value is multiplied by localTime to determine the rotation rate.
public static Transform2Bvr rotateRate(
double radians
);
Returns the Transform2Bvr object.
Rotations are counter-clockwise.
Creates a two-dimensional transformation behavior that, when applied to any two-dimensional object, rotates it by the given angle (expressed in degrees). This value is multiplied by localTime to determine the rotation rate.
public static Transform2Bvr rotateRateDegrees(
double degrees
);
Returns the Transform2Bvr object.
Rotations are counter-clockwise.
Creates a two-dimensional transformation behavior that, when applied to any two-dimensional object, scales it. For example, the transformation modifies the length of a vector by multiplying the vector's coordinates by the values of the corresponding number behaviors.
public static Transform2Bvr scale(
NumberBvr sx,
NumberBvr sy
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that, when applied to any two-dimensional object, scales it. For example, the transformation modifies the location of a point by multiplying the point's coordinates by the values of the corresponding vector coordinates.
public static Transform2Bvr scale(
Vector2Bvr v
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that, when applied to any two-dimensional object, scales it. The scaling rates are determined by multiplying each argument by localTime.
public static Transform2Bvr scaleRate(
double x,
double y
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that applies a uniform scale to every coordinate of a two-dimensional object.
public static Transform2Bvr scale2(
NumberBvr uniformFactor
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that applies a uniform scale to every coordinate of a two-dimensional object. The scaling rate is determined by multiplying the argument by localTime.
public static Transform2Bvr scale2Rate(
double rate
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that consists of a 3 by 2 matrix having the values specified by the given number behaviors.
public static Transform2Bvr transform3x2(
NumberBvr[] matrix
);
Returns the Transform2Bvr object.
The X and Y translation components are given by a02 and a12, respectively.
Creates a two-dimensional transformation behavior that, when applied to a point behavior, translates (moves) the point by the amount given by the number behaviors.
public static Transform2Bvr translate(
NumberBvr tx,
NumberBvr ty
);
Returns the Transform2Bvr object.
Two-dimensional vectors are unchanged by translations.
Creates a two-dimensional transformation that, when applied to a point, translates (moves) the point to the new location loc.
public static Transform2Bvr translate(
Point2Bvr loc
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that when applied to a point behavior translates (moves) the point by the amount given by the vector behavior.
public static Transform2Bvr translate(
Vector2Bvr v
);
Returns the Transform2Bvr object.
Two-dimensional vectors are unchanged by translations.
Creates a two-dimensional transformation behavior that, when applied to a point, translates (moves) the point by the amount given by the arguments. The translation rates are determined by multiplying the arguments by localTime.
public static Transform2Bvr translateRate(
double x,
double y
);
Returns the Transform2Bvr object.
Two-dimensional vectors are unchanged by translations.
Creates a two-dimensional transformation behavior that shears the x-axis either up or down. This means the X-coordinate of the points remains unchanged, and the Y-coordinate increases by the product of the X-coordinate and the shear factor. In other words, X2 = X1, and Y2 = Y1 + aX1, where a is the shear factor.
public static Transform2Bvr xShear(
NumberBvr x
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that shears the x-axis either up or down. The shear rate is determined by multiplying the argument by localTime.
public static Transform2Bvr xShearRate(
double rate
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that shears the y-axis either left or right. This means the Y-coordinate of the points remains unchanged, and the X-coordinate increases by the product of the Y-coordinate and the shear factor. In other words, Y2 = Y1 and X2 = X1 + aY1, where a is the shear factor.
public static Transform2Bvr yShear(
NumberBvr y
);
Returns the Transform2Bvr object.
Creates a two-dimensional transformation behavior that shears the y-axis either left or right. The shear rate is determined by multiplying the argument by localTime.
public static Transform2Bvr yShearRate(
double rate
);
Returns the Transform2Bvr object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.