This project is read-only.

Dumb question about Hull position

Jan 26, 2011 at 1:08 PM
Edited Jan 26, 2011 at 1:08 PM

Just a dumb question, but as I'm seeing, the convexHull's position is relative to the left-bottom corner, am I right?

Jan 26, 2011 at 7:25 PM

The hull's position is relative to the origin, and is transformed by the matrix which you provide krypton to render with. By default, krypton uses an identity matrix, and thus the position is not modified.

If you pass krypton an identity matrix, a hull with a position of 0,0 will be in the center, while a hull with a position of 1,1 will be at the top right.

What kind of problems are you running in to?

Jan 27, 2011 at 7:40 AM

I'm such an ass, it was a problem on my unit conversion function. Thanks for the feedback :)