At 03:09 PM 8/1/2000 +0200, you wrote:
>Good point, but I have a another problem I need the maximum point for, I
>want to have different detailTextures, which are not to be drawn when they
>are very far away.
>
>But having spent some background thinking on the problem now, is it true
>that the point(on the AABB) with maximum distance to the other point, is
>always on one of the 8 vertices? Which means I only have to find out which
>of the 8 vertices is most far away from the other point.
For the nearest point you can find places on the AABB that are closer than
the vertices, but for the farthest point I can't come up with any
conditions where that would be the case. Its possible that 2 or 4 points of
a face of the AABB will be equidistant to the test point, but in that case
it doesn't matter since the distance to any one of them will give you the
right answer.
Tom
|