Notifications
Clear all
[Closed] Documentation for Box2 incorrect?
Jul 29, 2010 3:02 am
The Maxscript docs say that Box2’s constructor is “Box2 x, y, width, height”, where x and y is the Top Left corner, however, through testing, i’ve found this is actually the Bottom Left corner.
True:
test = Contains (Box2 -1 -1 2 2) (Point2 0 0)
print test
False:
test = Contains (Box2 -1 1 2 2) (Point2 0 0)
print test
2 Replies
Jul 29, 2010 3:02 am
if your using dx, yeah :argh:
use the position & getTextExtent then construct your box2 not by its corners but by startCoords and dimensions
Jul 29, 2010 3:02 am
If you’re comparing UV space and bitmap values then they have different spaces.
UV is bottom left corner is 0,0 with a bitmap it’s top-left.