Creates a DAPoint3 object. The location of the point is calculated by adding the corresponding coordinates of the given point and vector behaviors.
lib.AddPoint3Vector(
pt,
vec
)
Returns the DAPoint3 object.
Creates a DAVector3 object of the instantaneous derivative (rate of change) of the given point. For example, a constant yields a constant derivative of [0 0 0], and Point3 (time, 0) (without additional time substitutions) yields a constant derivative of [1 0 0].
lib.DerivativePoint3(
pt
)
Returns the DAVector3 object.
Creates a DANumber representing the distance between two points.
lib.DistancePoint3(
p1,
p2
)
Returns the DANumber object.
Creates a DANumber object representing the square of the distance between two points. This is the same as the DistancePoint3 function except that the distance is squared.
lib.DistanceSquaredPoint3(
p1,
p2
)
Returns the DANumber object.
Creates a DAPoint3 object. The location of the point is given in Cartesian coordinates.
lib.Point3Anim(
x,
y,
z
)
Returns the DAPoint3 object.
Same as Point3Anim except that x, y, and z are non-animated numbers (doubles).
lib.Point3(
x,
y,
z
)
Creates a DAPoint3 behavior 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 DAPoint3 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.Point3BSpline(
degree,
knots,
control_elements,
weights,
evaluation
)
Returns the DAPoint3 object.
Creates a DAPoint3 object. The location of the point is given in spherical coordinates.
lib.Point3SphericalAnim(
XYangle,
YZangle,
length
)
Returns the DAPoint3 object.
The following table correlates Cartesian coordinates with polar coordinates (X means "Don't Care"):
Cartesian | XYangle | YZangle | Length | |
Coordinates | ||||
[0 0 0] | X | X | 0 | |
[d 0 0] | pi/2 | 0 | d | |
[-d 0 0] | -pi/2 | 0 | d | |
[0 d 0] | X | pi/2 | d | |
[0 -d 0] | X | -pi/2 | d | |
[0 0 d] | 0 | 0 | d | |
[0 0 -d] | pi | 0 | d |
Same as Point3SphericalAnim except that XYangle, YZangle, and length are non-animated numbers (doubles).
lib.Point3Spherical(
XYangle,
YZangle,
length
)
Creates a DAVector3 object. The coordinate values of the vector are calculated by subtracting the coordinates of p3 from the corresponding coordinates of p1.
lib.SubPoint3(
p1,
p2
)
Returns the DAVector3 object.
Creates a DAPoint3 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.SubPoint3Vector(
pt,
vec
)
Returns the DAPoint3 object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.