Previous Up Next

25.4.4  Vectors in space

See Section 24.6.4 for vectors in the plane.

The vector command returns and draws vectors. It can take its arguments in two different ways.

  1. The coordinates of the vector.
  2. Two points or a point and a vector.

Examples

vector([1,2,3])
vector(point(-1,0,0),point(0,1,2))

or:

vector([-1,0,0],[0,1,2])
V:=vector([-1,0,0],[0,1,2]); vector(point(-1,2,0),V)

Previous Up Next