OxMBounds3DAxisAlignedBox Class
A 3D axis-aligned bounding box volume.
Constructors
Expand All | Collapse All
-
OxMBounds3DAxisAlignedBox
Default constructor, creates a box 2 units high, wide, and deep (size of 1,1,1). -
OxMBounds3DAxisAlignedBox ( sizeX As Double, sizeY As Double, sizeZ As Double )
Set the box size using three double values. -
OxMBounds3DAxisAlignedBox ( boxsize As OxMVector3 )
Set the box size using a 3D vector.
Properties
Expand All | Collapse All
-
Size As OxMVector3
Read or set the size of the box. The size is defined from the center point to the +X, +Y, and +Z extents. The total size of the box is therefore 2X larger than this vector. For example:
' Create a default box and change the size to 64x64x64 units Dim bounds As New OxMBounds3DAxisAlignedBox bounds.Size.X = 32 bounds.Size.Y = 32 bounds.Size.Z = 32