Distance from a point to a line in space
D
The shortest distance from a point to a line in space: the length of the cross product of the vector from a point on the line to the point and the direction vector, divided by the length of the direction.
D
D≈2.2361
D equals the square root of (((((−2 minus (−2)) times 2) minus ((3 minus 3) times 1)) squared plus (((3 minus 3) times 2) minus ((4 minus 1) times 2)) squared) plus (((4 minus 1) times 1) minus (((−2) minus (−2)) times 2)) squared) divided by the square root of ((2 squared plus 1 squared) plus 2 squared), equals the square root of ((((0 times 2) minus (0 times 1)) squared plus ((0 times 2) minus (3 times 2)) squared) plus ((3 times 1) minus (0 times 2)) squared) divided by the square root of ((4 plus 1) plus 4), equals the square root of (((0 minus 0) squared plus (0 minus 6) squared) plus (3 minus 0) squared) divided by the square root of (5 plus 4), equals the square root of ((0 squared plus (−6) squared) plus 3 squared) divided by the square root of (9), equals the square root of ((0 plus 36) plus 9) divided by 3, equals the square root of (36 plus 9) divided by 3, equals the square root of (45) divided by 3, is approximately 6.7082 divided by 3, is approximately 2.2361