Creates a DAVector2 object that is the vector-valued sum of the two vectors.
lib.AddVector2(
v1,
v2
)
Returns the DAVector2 object.
Creates a DAVector2 object that is the instantaneous derivative (rate of change) of the given vector. For example, a constant vector yields a constant derivative of [0 0], and Vector2(time, 0) (without any additional time substitutions) yields a constant derivative vector of [1 0].
lib.DerivativeVector2(
vec
)
Returns the DAVector2 object.
Creates a DANumber object that represent the "dot product" of the given vectors. The dot product is the product of the lengths of the vectors and the cosine of the angle between them.
lib.DotVector2(
v1,
v2
)
Returns the DANumber object.
Creates a DAVector2 object that represents the sum of the all values of vec from the given start time to the present.
lib.IntegralVector2(
vec
)
Returns the DAVector2 object.
Creates a DAVector2 object that is the same length as the original vector but points in the opposite direction.
lib.NegVector2(
v1
)
Returns the DAVector2 object.
Creates a DAVector2 object. The direction and length of the vector are calculated by subtracting the coordinates of v2 from the corresponding coordinates of v1.
lib.SubVector2(
v1,
v2
)
Returns the DAVector2 object.
Creates a DAVector2 object having a direction and length as specified by the given Cartesian coordinates.
lib.Vector2Anim(
x,
y
)
Returns the DAVector2 object.
Same as Vector2Anim except that x and y are non-animated numbers (doubles).
lib.Vector2(
x,
y
)
Creates a DAVector2 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 DAVector2 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.Vector2BSpline(
degree,
knots,
control_elements,
weights,
evaluation
)
Returns the DAVector2 object.
Creates a DAVector2 object having a direction and length as specified by the given polar coordinates.
lib.Vector2PolarAnim(
XYangle,
length
)
Returns the DAVector2 object.
Same as Vector2PolarAnim except that XYangle and length are non-animated numbers (doubles).
lib.Vector2Polar(
XYangle,
length
)
Creates a DAVector2 object having a direction and length as specified by the given polar coordinates.
lib.Vector2PolarDegrees(
XYangle,
length
)
Returns the DAVector2 object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.