PDA

View Full Version : How is a box defined??



chronozphere
22-12-2006, 10:02 PM
Hi 8)

I have a small question:

I know that the definition for a sphere is this:

x,y,z,radius

Now i like to know the common definition of a box.
I mean a box with any size, at any positon with any rotation/orientation (so i'm not talking about an Axis-aligned box).
I want to use as less variabeles as possible. :)

Does someone know this definition???

Thank you!

WILL
22-12-2006, 10:13 PM
I'm assuming that you are having it originate from the center like the sphere, so it would be something like...

this?

x, y, z, width, height, length, xrot, yrot, zrot

I think thats a low as you can get it.

chronozphere
22-12-2006, 10:21 PM
Ok?© thank you... :)

I didn't know what the best definition was, i was struggling a bit with the rotations and how to get them as compact as possible. :)

EDIT: haha nice... i'm an octal champion now :lol: