You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The distance function in the Plane3D class gives the wrong calculations. When I have a point only 10 away from the corresponding plane, it gives me this outrageously large number instead. I have the correct code for it, which is:
if (_alignment == ALIGN_YZ_AXIS)
return Math.abs(p.x + (d / a));
else if (_alignment == ALIGN_XZ_AXIS)
return Math.abs(p.y + (d / b));
else if (_alignment == ALIGN_XY_AXIS)
return Math.abs(p.z + (d / c));
else
return Math.abs(a * p.x + b * p.y + c * p.z + d) / Math.sqrt(a * a + b * b + c * c);
If you could implement this code into that distance function, it would help out others immensely.
Also, it may also help if you made the _alignment property public (get, not set).
The text was updated successfully, but these errors were encountered:
The distance function in the Plane3D class gives the wrong calculations. When I have a point only 10 away from the corresponding plane, it gives me this outrageously large number instead. I have the correct code for it, which is:
If you could implement this code into that distance function, it would help out others immensely.
Also, it may also help if you made the _alignment property public (get, not set).
The text was updated successfully, but these errors were encountered: