d = norm(cross(B-A,P-A))/norm(B-A);
This is a formula for finding the distance between a point and a line segment in 3D space.
A, B, and P are all vectors.
Maya expression is not taking “norm” procedure.
Thaks
d = norm(cross(B-A,P-A))/norm(B-A);
This is a formula for finding the distance between a point and a line segment in 3D space.
A, B, and P are all vectors.
Maya expression is not taking “norm” procedure.
Thaks
yeah, the fornula was wrong.
it was mag.
d = |(P - A) x (P - B)| / |(B - A)|
where “|…|” denotes the magnitude value (positive) and “x” is the cross product.
thanks.
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.