, . , , , , .
(p1, p2, p3) (q1, q2, q3), , P Q :
V = (q1-p1) * + (q2 - p2) * j + (q3 - p3) * k
where (i, j, k) are vectors of magnitude 1 in the x, y, and z directions, respectively.
The value (e.g. distance) from P to Q is the square root of the sum of the squared components.
source
share