프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Max | System.Vector2 | ||
Min | System.Vector2 | ||
Zero |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | System |
public Box2 ( System.Vector2 min, System.Vector2 max ) : System | ||
min | System.Vector2 | |
max | System.Vector2 | |
리턴 | System |
public Intersect ( System.Vector2 point ) : Containment | ||
point | System.Vector2 | |
리턴 | Containment |
public NearestPointTo ( System.Vector2 point ) : System.Vector2 | ||
point | System.Vector2 | |
리턴 | System.Vector2 |
public NearestPointTo ( System.Vector2 &point, System.Vector2 &result ) : void | ||
point | System.Vector2 | |
result | System.Vector2 | |
리턴 | void |
public Random ( |
||
rng | ||
result | System.Vector2 | |
리턴 | void |
public static Relative ( Length minX, Length minY, Length sizeX, Length sizeY ) : |
||
minX | Length | |
minY | Length | |
sizeX | Length | |
sizeY | Length | |
리턴 |
public static Relative ( System.Vector2 min, System.Vector2 size ) : |
||
min | System.Vector2 | |
size | System.Vector2 | |
리턴 |
public static Relative ( Length minX, Length minY, Length sizeX, Length sizeY, |
||
minX | Length | |
minY | Length | |
sizeX | Length | |
sizeY | Length | |
result | ||
리턴 | void |
public static Relative ( System.Vector2 min, System.Vector2 size, |
||
min | System.Vector2 | |
size | System.Vector2 | |
result | ||
리턴 | void |
public ToString ( string format, IFormatProvider provider ) : string | ||
format | string | |
provider | IFormatProvider | |
리턴 | string |