Cookmath

3D coordinates and vectors

A=(1,2,−1),B=(4,−2,5). AB=B−A=(3,−4,6), so distance |AB|=√(9+16+36)=√61.

What you will learn

Subtract coordinates and find distance

Compute midpoint and a unit direction

A common mistake

A point (x,y,z) is a location, while a vector is a displacement.

Review first

Continue learning

Vectors and 3D geometry · Dot product and angles

Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.