Source
Adapted from my own handwritten and hand-typed notes from Year 1 to Year 3 of my EEE degree
In 3D a line has no single "gradient". Instead it is fixed by one point on it and a direction vector parallel to it. Distances from a point to a line use the cross product.
Equations of a Line
A line through the point with position vector , parallel to :
| Form | Equation |
|---|---|
| Vector | |
| Parametric | |
| Cartesian (if all ) |
Each value of the parameter gives one point on the line.
Worked Example
Find a vector equation of the line through parallel to , where and :
- direction:
- point:
Angle Between Two Lines
The angle between two lines is the acute angle between their direction vectors, so take the absolute value:
Example: line , , and the -axis:
- directions with , and
- , so
Distance From a Point to a Line
Let be a point on the line, its direction and the outside point. The shortest distance is the perpendicular distance:
Worked example: and the line :
- , so , and with
- , which has length
- units