Creates a DAPoint2 object that represents a two-dimensional point that can be animated (vary over time). At any given time, the value is a point representing a location in a plane or on the screen. Each point has a pair of coordinate values that define the point's location relative to a fixed point called the origin. These coordinate values are given as either Cartesian coordinates (x,y) or polar coordinates (XYangle,length) when the point DAPoint2 object is created.
Because coordinate values are DANumber objects the location of a DAPoint2 can change over time as the DANumbers change.
This class inherits from DABehavior.
Used to form fragments of script and pass them to the scripting engine on every frame. This function is specifically with DAPoint2 objects to animate the two-dimensional position of an element on the page.
The AnimateControlPositionPixel function always treats the values of the points as pixels rather than meters and considers positive-y to be down rather than up. The (0,0) point is in the upperleft-hand corner.
point2Obj.AnimateControlPositionPixel(
property,
language,
invoke,
interval
)
Returns the DAPoint2 object.
Creates a DAPoint2 object that is the result of applying the given transformation to the original DAPoint2 object.
point2Obj.Transform(
xf
)
Returns the DAPoint2 object.
This function composes values. The resulting transformation is the new value applied to the old value.
A read-only property with a DANumber value that represents the counter-clockwise angular displacement, in radians, relative to the positive x-axis, of the pointObj. The range is [-Pi, +Pi].
point2Obj.PolarCoordAngle
PolarCoordLength, Point2PolarAnim
A read-only property with a DANumber value that represents the distance of the point from the origin.
point2Obj.PolarCoordLength
PolarCoordAngle, Point2PolarAnim
A read-only property with a DANumber value that represents the x coordinate of the point2Obj.
point2Obj.X
Returns the DANumber object.
A read-only property with a DANumber value that represents the y coordinate of the point2Obj.
point2Obj.Y
The following functions are defined in the DAStatics class and are most relevant to objects of type DAPoint2.
lib.DistanceSquaredPoint2(p1, p2)
lib.Point2BSpline(degree, knots, control_elements, weights, evaluation)
lib.Point2PolarAnim(XYangle, length)
lib.Point2Polar(XYangle, length)
The following properties are defined in the DAStatics class and are most relevant to objects of type DAPoint2.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.