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
Subtract coordinates and find distance
- A=(1,2,−1),B=(4,−2,5). AB=B−A=(3,−4,6), so distance |AB|=√(9+16+36)=√61.
- Check: BA=−AB=(−3,4,−6), with the same length.
Compute midpoint and a unit direction
- Midpoint=((1+4)/2,(2−2)/2,(−1+5)/2)=(5/2,0,2). Unit vector=(3,−4,6)/√61, whose squared norm is 61/61=1.
- Check: A zero vector has no unit direction; normalization requires nonzero length.
A common mistake
A point (x,y,z) is a location, while a vector is a displacement.
Review first
Continue learning
Advanced · 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.