Свойство | Тип | Описание | |
---|---|---|---|
Max | Vector2i | ||
Min | Vector2i | ||
Zero |
Метод | Описание | |
---|---|---|
Box2i ( |
Create a Box2i by providing minimum and maximum extents.
|
|
Box2i ( Vector2i min, Vector2i max ) : System |
Create a Box2i by providing minimum and maximum extents.
|
|
Distance ( Vector2i point ) : double |
Get the closest distance between this Box2i and the Vector2i.
|
|
Intersect ( Vector2i point ) : Containment |
Get the intersection type between this box and the point.
|
|
NearestPointTo ( Vector2i point ) : Vector2i |
Get the nearest point between this Box2i and a Vector2i. If the Vector2i is inside this Box2i, it is returned untouched.
|
|
NearestPointTo ( Vector2i &point, Vector2i &result ) : void |
Get the nearest point between this Box2i and a Vector2i. If the Vector2i is inside this Box2i, it is returned untouched.
|
|
Overlaps ( Vector2i point ) : bool |
Get whether this Box2i inclusively intersects with the Vector2i.
|
|
Random ( |
Get a random position within the box.
|
|
Random ( |
Get a random position within the box.
|
|
Relative ( |
Create a Box2i by providing the minimum extent and the size of each side.
|
|
Relative ( Vector2i min, Vector2i size ) : |
Create a Box2i by providing the minimum extent and the size of each side.
|
|
Relative ( |
Create a Box2i by providing the minimum extent and the size of each side.
|
|
Relative ( Vector2i min, Vector2i size, |
Create a Box2i by providing the minimum extent and the size of each side.
|
|
ToString ( ) : string |
Convert to a string representation of the Box2i.
|
|
ToString ( string format, IFormatProvider provider ) : string |
Convert to a string representation of the Box2i.
|
public Box2i ( |
||
minX | ||
minY | ||
maxX | ||
maxY | ||
Результат | System |
public Box2i ( Vector2i min, Vector2i max ) : System | ||
min | Vector2i | |
max | Vector2i | |
Результат | System |
public Distance ( Vector2i point ) : double | ||
point | Vector2i | |
Результат | double |
public Intersect ( Vector2i point ) : Containment | ||
point | Vector2i | |
Результат | Containment |
public NearestPointTo ( Vector2i point ) : Vector2i | ||
point | Vector2i | |
Результат | Vector2i |
public NearestPointTo ( Vector2i &point, Vector2i &result ) : void | ||
point | Vector2i | |
result | Vector2i | |
Результат | void |
public Random ( |
||
rng | ||
Результат | Vector2i |
public Random ( |
||
rng | ||
result | Vector2i | |
Результат | void |
public static Relative ( |
||
minX | ||
minY | ||
sizeX | ||
sizeY | ||
Результат |
public static Relative ( Vector2i min, Vector2i size ) : |
||
min | Vector2i | |
size | Vector2i | |
Результат |
public static Relative ( |
||
minX | ||
minY | ||
sizeX | ||
sizeY | ||
result | ||
Результат | void |
public static Relative ( Vector2i min, Vector2i size, |
||
min | Vector2i | |
size | Vector2i | |
result | ||
Результат | void |
public ToString ( string format, IFormatProvider provider ) : string | ||
format | string | |
provider | IFormatProvider | |
Результат | string |