Notifications
Clear all

[Closed] Documentation for Box2 incorrect?

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

if your using dx, yeah :argh:
use the position & getTextExtent then construct your box2 not by its corners but by startCoords and dimensions

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.