프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 NearestPointTo ( Vector2d point ) : Vector2d | ||
point | Vector2d | |
리턴 | Vector2d |
public NearestPointTo ( Vector2d &point, Vector2d &result ) : void | ||
point | Vector2d | |
result | Vector2d | |
리턴 | void |
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 |