Hi,
as titled, I am trying to calculate the closest point to a set of lines in 3D
I saw here that this guy pointed out some Mathematica code.
I put it into the Mathematica Kernel and I got a very long result.. so I decided to write an algorithm by myself.
Now I would like, instead, given four known lines (each of them defined by two points), to get the closest point..
The lines are the following:
Line[] lines = new Line[]{
new Line(new Vec3(77.007f, 32.46f, 177.79f), new Vec3(139.398f, -309.133f, -116.29f)),
//
new Line(new Vec3(-79.504f, 31.969f, -179.158f), new Vec3(31.886f, -367.752f, 99.796f)),
//
new Line(new Vec3(-77.401f, 32.855f, 174.843f), new Vec3(25.944f, -350.134f, -129.523f)),
//
new Line(new Vec3(80.781f, 32.154f, -176.942f), new Vec3(-149.572f, -326.383f, 84.57f))
};
But I have no knowledge of Mathematica, could someone help me?
