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