Creates a DAVector3 object that represents a three-dimensional vector. At any given time, the value of the vector is a direction and length (magnitude), specified as a triplet of coordinate values given as either Cartesian coordinates (x, y, z) or spherical coordinates (XYangle, YZangle, length). The direction of the vector is parallel to the ray that starts at the origin and passes through the point specified by the vector's coordinates, and the length is the distance between the origin and the point.
Because coordinate values are animated numbers,(DANumber objects), the direction and length of the vector can change over time as the animated numbers change.
This class inherits from the DABehavior Class.
Creates a DAVector3 object that points in the same direction as the original vector but has a length that has been divided by scalar.
vector3Obj.DivAnim(
scalar
)
Returns the DAVector3 object.
Same as DivAnim except that scalar is a non-animated number (a double).
vector3Obj.Div(
scalar
)
Creates a DAVector3 object that points in the same direction as the original vector but has a length that has been multiplied by scalar.
vector3Obj.MulAnim(
scalar
)
Returns the DAVector3 object.
Same as MulAnim except that scalar is a non-animated number (a double).
vector3Obj.Mul(
scalar
)
Creates a normalized DAVector3 object. The normalized vector has the same direction as the original vector, but the length is 1.
vector3Obj.Normalize
Returns the DAVector3 object.
Creates a DAVector3 object that is the result of applying the given transformation to the original vector. The translation elements of the transformation are ignored because translation does not apply to vectors.
vector3Obj.Transform(
xf
)
Returns the DAVector3 object.
This attribute composes values.
vector3Obj.SphericalCoordXYAngle
A read-only property with a DANumber value that represents the length of a DAVector3 object.
vector3Obj.Length
A read-only property with a DANumber value that represents the length of a DAVector3 object squared.
vector3Obj.LengthSquared
A read-only property with a DANumber value represents the length (or magnitude) of the vector.
vector3Obj.SphericalCoordLength
A read-only property with a DANumber value that is the counter-clockwise angle, in radians, of the vector about the y-axis, starting at positive z. The range is [-Pi, +Pi].
vector3Obj.SphericalCoordXYAngle
A read-only property with a DANumber object that is the YZ angle, in radians, going up from the XZ-plane towards the positive y-ray. The range is [-Pi/2, +Pi/2].
vector3Obj.SphericalCoordYZAngle
A read-only property with a DANumber value that represents the X-coordinate of the DAVector3 object.
vector3Obj.X
Y, Z, Vector3Anim
A read-only property with a DANumber value that represents the Y-coordinate of the DAVector3 object.
vector3Obj.Y
A read-only property with a DANumber value that represents the z coordinate of the DAVector3 object.
vector3Obj.Z
The following functions are defined in the DAStatics class and are most relevant to objects of type DAVector3.
lib.Vector3BSpline(degree, knots, control_elements, weights, evaluation)
lib.Vector3Spherical(XYangle, YZangle, length)
lib.Vector3SphericalAnim(XYangle, YZangle, length)
The following properties are defined in the DAStatics class and are most relevant to objects of type DAVector3.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.