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