    Contents  Index  Topic Contents
    Previous Topic: T

> ## V

> vector
>   Describes magnitude and direction. In DirectAnimation, 2-D vectors are DAVector2 (or Java Vector2Bvr) behaviors and can be constructed from polar or Cartesian coordinates. Three-dimensional vectors are DAVector3 (or Java Vector3Bvr) behaviors and can be constructed from spherical or Cartesian coordinates. Vectors can also be constructed from points, as shown in the following JScript code:

>       myVec3 = m.Sub(firstPt3, secondPt3);

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.