8
Vectors 147
original two. Vector addition is commutative:
V+W=W+V.
Adding t wo vectors
Subtracting two vectors gives the vector b etween
the two points.
Subtracting two vectors
Scalar Multiplication and Division
Multiplying a vector by a scalar changes the
vector’slength,asdoesdividingthevectorbya
scalar.
Vector Length and Direction
The length of a vector is obtained from the
Py thagorean theorem.
In 3ds Max expressions, the length() f unction
returnsthisvalue.
The direction of the vector is the vector divided
by its length; this gives you a unit vector with the
same direction.
The distance between two points is the length of
the vector between them.
Subtracting vecto rs to obtain a distance