Poll: Remove cCuboid?
You do not have permission to vote in this poll.
Yes, and add replacement API functions
57.14%
4 57.14%
Yes, and do NOT add replacement API functions
0%
0 0%
No, keep it
14.29%
1 14.29%
No, keep it, BUT add replacement functions, too.
28.57%
2 28.57%
Total 7 vote(s) 100%
* You voted for this item. [Show Results]

Remove cCuboid class?
#1
The cCuboid class is present only for the API, and the only two things it does is sorting three sets of two numbers (coord sort) and comparing three coords with six coords (testing if a point is inside).

In my opinion this class is highly useless and should be considered for removal from the API. If wanted, we could make single API functions with the similar behavior, but easier usage:
local MinX, MaxX, MinY, MaxY, MinZ, MaxZ = SortThreeCoords(X1, X2, Y1, Y2, Z1, Z2);
IsPointInside(X, Y, MinX, MaxX, MinY, MaxY, MinZ, MaxZ);

How about that?
Reply
Thanks given by:


Messages In This Thread
Remove cCuboid class? - by xoft - 02-22-2013, 11:01 PM
RE: Remove cCuboid class? - by xoft - 02-23-2013, 07:08 AM
RE: Remove cCuboid class? - by NiLSPACE - 02-23-2013, 07:24 AM
RE: Remove cCuboid class? - by ThuGie - 02-23-2013, 07:43 AM
RE: Remove cCuboid class? - by xoft - 02-23-2013, 08:05 AM
RE: Remove cCuboid class? - by Taugeshtu - 02-24-2013, 10:30 PM
RE: Remove cCuboid class? - by FakeTruth - 02-24-2013, 10:47 PM
RE: Remove cCuboid class? - by xoft - 02-25-2013, 03:42 AM
RE: Remove cCuboid class? - by keyboard - 02-25-2013, 04:58 AM
RE: Remove cCuboid class? - by FakeTruth - 02-25-2013, 10:42 AM
RE: Remove cCuboid class? - by xoft - 02-25-2013, 04:14 PM
RE: Remove cCuboid class? - by FakeTruth - 02-25-2013, 07:52 PM



Users browsing this thread: 2 Guest(s)