|
oevislib_net
0.14.3.0
|
A discrete, axis-aligned, rectangular region. More...
Public Member Functions | |
| bool | Equals (Box other) |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| override object | Clone () |
Box Relations | |
| |
| bool | Contains (Point2Di inPosition) |
| Returns true if the box contains the provided point, false otherwise. | |
| bool | Contains (Point2D inPoint) |
| Returns true if the box contains the provided point, false otherwise. | |
| bool | Contains (Array< Point2D > inPoints, Optional< Array< bool > > outIsContainedArray=null, Optional< Array< Point2D > > outPoints=null) |
| Checks if all the points in the array are contained in the box. | |
Properties | |
| int | X = 0 [get, set] |
| int | Y = 0 [get, set] |
| int | Width = 0 [get, set] |
| int | Height = 0 [get, set] |
Box Basics | |
| |
| static bool | operator== (Box inBox1, Box inBox2) |
| static bool | operator!= (Box inBox1, Box inBox2) |
| static Box | Deserialize (ByteBuffer inBuffer) |
| De-serialize a Box buffer. | |
| Box () | |
| Creates a new empty box. | |
| Box (int inX, int inY, int inWidth, int inHeight) | |
| Creates a new box, given the top-left corner, width and height. | |
| ByteBuffer | Serialize () |
| Serializes the object. | |
| int | GetArea () |
| Returns the area of the box. | |
| Point2D | GetCenter () |
| Returns the box's center point. | |
A discrete, axis-aligned, rectangular region.