Creates a DAPoint2 object. The location of the object is calculated by adding the corresponding coordinates of the given DAPoint2 and DAVector2 objects.
lib.AddPoint2Vector(
pt,
vec
)
Returns the DAPoint2 object.
Creates a DAVector2 object representing the instantaneous derivative (rate of change) of pt. For example, a constant yields a constant derivative of [0 0], and Point2(time, 0) (without additional time substitutions) yields a constant derivative of [1 0].
lib.DerivativePoint2(
pt
)
Returns the DAVector2 object.
Creates a DAPoint2 object representing the distance between the two given points, p1 and p2.
lib.DistancePoint2(
p1,
p2
)
Returns the DANumber object.
Creates a DANumber object representing the square of the distance between the two points, p1 and p2. This is the same as the DistancePoint2 function except that the distance is squared.
lib.DistanceSquaredPoint2(
p1,
p2
)
Returns the DANumber object.
Creates a DAPoint2 object. The location of the object is given in Cartesian coordinates.
lib.Point2Anim(
x,
y
)
Returns the DAPoint2 object.
Same as Point2Anim except that x and y are non-animated numbers (doubles).
lib.Point2(
x,
y
)
Creates a DAPoint2 object based on a B-spline function. The function depends on the control elements, the knot vector, the mathematical degree, and the weights of the control elements (these are optional).
A B-spline function without weights is piecewise polynomial and with weights is piecewise rational (the quotient of two polynomials). It requires that:
numberOfControlElements = numberOfKnots - degree + 1
The control elements define the approximate direction and shape of the function. The knots represent junction values, in parameter space, between the connected polynomial parts.
Given a degree d and a number of knots k, the function is valid in the range knotd to knotk-d+1, and is otherwise undefined. For example, for a degree 2 curve, the valid range is from the second knot to the next to the last knot, inclusive.
The returned DAPoint2 object is the traversal of the spline function according to the evaluation parameter. The evaluation parameter is a DANumber that must be in the valid range of the spline, which is [knotd, knotk-d+1]. Any values outside this range are automatically clamped to the end values.
lib.Point2BSpline(
degree,
knots,
control_elements,
weights,
evaluation
)
Returns the DAPoint2 object.
Creates a DAPoint2 object. The location of the object is given in polar coordinates.
lib.Point2PolarAnim(
XYangle,
length
)
Returns the DAPoint2 object.
Same as Point2PolarAnim except that x and y are non-animated numbers (doubles).
lib.Point2Polar(
x,
y
)
Creates a DAVector2 object. The coordinate values of the vector are calculated by subtracting the coordinates of p2 from the corresponding coordinates of p1.
lib.SubPoint2(
p1,
p2
)
Returns the DAVector2 object.
Creates a DAPoint2 object. The location of the point is calculated by subtracting the coordinates of the given vector behavior from the corresponding coordinates of the given point.
lib.SubPoint2Vector(
pt,
vec
)
Returns the DAPoint2 object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.