Property | Type | Description | |
---|---|---|---|
Max | System.Vector2 | ||
Min | System.Vector2 | ||
Zero |
Method | Description | |
---|---|---|
Box2 ( Length minX, Length minY, Length maxX, Length maxY ) : System |
Create a Box2 by providing minimum and maximum extents.
|
|
Box2 ( System.Vector2 min, System.Vector2 max ) : System |
Create a Box2 by providing minimum and maximum extents.
|
|
Distance ( System.Vector2 point ) : Length |
Get the closest distance between this Box2 and the Vector2.
|
|
Intersect ( System.Vector2 point ) : Containment |
Get the intersection type between this box and the point.
|
|
NearestPointTo ( System.Vector2 point ) : System.Vector2 |
Get the nearest point between this Box2 and a Vector2. If the Vector2 is inside this Box2, it is returned untouched.
|
|
NearestPointTo ( System.Vector2 &point, System.Vector2 &result ) : void |
Get the nearest point between this Box2 and a Vector2. If the Vector2 is inside this Box2, it is returned untouched.
|
|
Overlaps ( System.Vector2 point ) : bool |
Get whether this Box2 inclusively intersects with the Vector2.
|
|
Random ( |
Get a random position within the box.
|
|
Random ( |
Get a random position within the box.
|
|
Relative ( Length minX, Length minY, Length sizeX, Length sizeY ) : |
Create a Box2 by providing the minimum extent and the size of each side.
|
|
Relative ( System.Vector2 min, System.Vector2 size ) : |
Create a Box2 by providing the minimum extent and the size of each side.
|
|
Relative ( Length minX, Length minY, Length sizeX, Length sizeY, |
Create a Box2 by providing the minimum extent and the size of each side.
|
|
Relative ( System.Vector2 min, System.Vector2 size, |
Create a Box2 by providing the minimum extent and the size of each side.
|
|
ToString ( ) : string |
Convert to a string representation of the Box2.
|
|
ToString ( string format, IFormatProvider provider ) : string |
Convert to a string representation of the Box2.
|
public Box2 ( Length minX, Length minY, Length maxX, Length maxY ) : System | ||
minX | Length | |
minY | Length | |
maxX | Length | |
maxY | Length | |
return | System |
public Box2 ( System.Vector2 min, System.Vector2 max ) : System | ||
min | System.Vector2 | |
max | System.Vector2 | |
return | System |
public Distance ( System.Vector2 point ) : Length | ||
point | System.Vector2 | |
return | Length |
public Intersect ( System.Vector2 point ) : Containment | ||
point | System.Vector2 | |
return | Containment |
public NearestPointTo ( System.Vector2 point ) : System.Vector2 | ||
point | System.Vector2 | |
return | System.Vector2 |
public NearestPointTo ( System.Vector2 &point, System.Vector2 &result ) : void | ||
point | System.Vector2 | |
result | System.Vector2 | |
return | void |
public Overlaps ( System.Vector2 point ) : bool | ||
point | System.Vector2 | |
return | bool |
public Random ( |
||
rng | ||
return | System.Vector2 |
public Random ( |
||
rng | ||
result | System.Vector2 | |
return | void |
public static Relative ( Length minX, Length minY, Length sizeX, Length sizeY ) : |
||
minX | Length | |
minY | Length | |
sizeX | Length | |
sizeY | Length | |
return |
public static Relative ( System.Vector2 min, System.Vector2 size ) : |
||
min | System.Vector2 | |
size | System.Vector2 | |
return |
public static Relative ( Length minX, Length minY, Length sizeX, Length sizeY, |
||
minX | Length | |
minY | Length | |
sizeX | Length | |
sizeY | Length | |
result | ||
return | void |
public static Relative ( System.Vector2 min, System.Vector2 size, |
||
min | System.Vector2 | |
size | System.Vector2 | |
result | ||
return | void |
public ToString ( string format, IFormatProvider provider ) : string | ||
format | string | |
provider | IFormatProvider | |
return | string |