The shortest path distance is a straight line. Let p 1 and p 2 be points on line A and q be a point on line B. The squared distance between any to points can be expressed as d2pra pqb rs2 You minimize it by differentiating on a abd b giving the system begincasespqcdotpra pqb rs0rscdotpra pqb rs0endcases.
Given some vectors vecu vecv in mathbbRn we denote the distance between those two points in the following manner.
Vector3Distance ab is the same as a-bmagnitude. C nb of common positive bits between vector A and B. B nb positive bits for vector B. Public class ExampleClass.