Vectors for Geometry.

Point to Line

Derivation

Given a line in the form and a point , the distance between the point and the line is just the component of the vector , where is an arbitrary point on the line, and , the normal vecvtor of .

Point to Vector

Derivation

Given a line as a parametric function that we can write as a vector and a point, we can find the distance between the point and the line as the magnitude of the vector connecting the point to any point on the line multiplied by the sine of the angle it forms with the line’s parallel vector.

Let be a point, let be the line’s vector, and let be a point on the line.

Point to Plane

Formula

Given that the plane is in the form

and the point is in the form

We can use the same approach as Point to Line.

Plane to Plane