OxMBounds2DAxisAlignedBox Class
A 2D axis-aligned bounding box volume.
Constructors
Expand All | Collapse All
-
OxMBounds2DAxisAlignedBox
Default constructor, creates a box 2 units high and wide (size of 1,1). -
OxMBounds2DAxisAlignedBox ( sizeX As Double, sizeY As Double )
Set the box size using two double values. -
OxMBounds2DAxisAlignedBox ( boxsize As OxMVector2 )
Set the box size using a 2D vector.
Properties
Expand All | Collapse All
-
Size As OxMVector2
Read or set the size of the box. The size is defined from the center point to the +X and +Y 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 64x64 units Dim bounds As New OxMBounds2DAxisAlignedBox bounds.Size.X = 32 bounds.Size.Y = 32