Box2i Type
Defines an axis-aligned 2D box (rectangle) in integers. Copied from - https://github.com/opentk/opentk/blob/opentk5.0/src/OpenTK.Mathematics/Geometry/Box2.cs Heavily modified by BGE to more closely conform to System.Numerics and use a size-preserving representation ([min, size] instead of [min, max]), as well as using integers.
Constructors
Constructor | Description |
|
|
Full Usage:
Box2i(minX, minY, sizeX, sizeY)
Parameters:
int
minY : int
sizeX : int
sizeY : int
|
|
Instance members
Instance member | Description |
Full Usage:
this.Contains
Parameters: Returns: ContainmentType
A value indicating if this Box2i contains,
intersects with or is disjoint with box.
|
|
Full Usage:
this.Contains
Parameters:
byref<Box2i>
-
The Box2i to test for overlap.
result : byref<ContainmentType>
-
A value indicating if this Box2i contains,
intersects with or is disjoint with box.
|
|
Full Usage:
this.Contains
Parameters: Returns: ContainmentType
ContainmentType.Contains if this Box2i contains
point or ContainmentType.Disjoint if it does not.
|
|
Full Usage:
this.Contains
Parameters:
byref<Vector2>
-
The Vector2 to test.
result : byref<ContainmentType>
-
ContainmentType.Contains if this Box2i contains
point or ContainmentType.Disjoint if it does not.
|
|
Full Usage:
this.Equals
Parameters:
obj
Returns: bool
Modifiers: abstract |
|
|
|
Full Usage:
this.GetHashCode
Returns: int
Modifiers: abstract |
|
Full Usage:
this.ToString
Returns: string
Modifiers: abstract |
|
Static members
Static member | Description |
|
|
|
|
|