![]() |
Superfighters Deluxe
|
Public Member Functions | |
| Area (float top, float left, float bottom, float right) | |
| Constructs a new Area More... | |
| Area (Vector2 min, Vector2 max) | |
| Constructs a new Area based on min/max points More... | |
| bool | Contains (Area area) |
| Checks if this Area is contained within this. More... | |
| bool | Contains (float x, float y) |
| Checks if this Area contains the given point More... | |
| bool | Contains (Vector2 point) |
| Checks if this Area contains the given point More... | |
| Area | Copy () |
| Returns a copy of the area More... | |
| bool | Equals (Area other) |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| void | Grow (float extent) |
| Adjusts top/left/right/bottom with extent value while keeping center intact. More... | |
| void | Grow (float width, float height) |
| Grows width and height with given values while keeping center intact. More... | |
| bool | Intersects (Area area) |
| Checks if the Area intersects this. More... | |
| void | Move (Vector2 distance) |
| Moves the Area the given distance. Results in: Min += distance Max += distance More... | |
| void | Normalize () |
| Normalizes the Area. If the width or height happens to be negative this method will swap the Min/Max points so the width and height are positive. More... | |
| void | SetDimensions (float width, float height) |
| Sets the width and height while keeping the center intact. More... | |
| void | SetHeight (float height) |
| Sets the height while keeping the center intact. More... | |
| void | SetWidth (float width) |
| Sets the width while keeping the center intact. More... | |
| override string | ToString () |
Static Public Member Functions | |
| static Area | Intersect (Area areaA, Area areaB) |
| Returns the intersecting Area between two Areas. More... | |
| static bool | operator!= (Area areaA, Area areaB) |
| static bool | operator== (Area areaA, Area areaB) |
| static Area | Union (Area areaA, Area areaB) |
| Returns the union Area between two Areas. More... | |
Properties | |
| float | Bottom [get, set] |
| Gets or Sets the bottom side of the Area More... | |
| Vector2 | BottomLeft [get, set] |
| Gets or Sets the bottom left corner of the Area More... | |
| Vector2 | BottomRight [get, set] |
| Gets or Sets the bottom right corner of the Area More... | |
| Vector2 | Center [get] |
| Returns the center point of the Area More... | |
| float | Height [get] |
| Gets the height of the Area. Returns (Top - Bottom) More... | |
| bool | IsEmpty [get] |
| Gets if this is an empty area where min and max equals zero More... | |
| float | Left [get, set] |
| Gets or Sets the left side of the Area More... | |
| Vector2 | Max [get, set] |
| Gets or Sets the Max point of the Area. This is the TopRight corner of the Area. More... | |
| Vector2 | Min [get, set] |
| Gets or Sets the Min point of the Area. This is the BottomLeft corner of the Area. More... | |
| float | Right [get, set] |
| Gets or Sets the right side of the Area More... | |
| float | Top [get, set] |
| Gets or Sets the top side of the Area More... | |
| Vector2 | TopLeft [get, set] |
| Gets or Sets the top left corner of the Area More... | |
| Vector2 | TopRight [get, set] |
| Gets or Sets the top right corner of the Area More... | |
| float | Width [get] |
| Gets the width of the Area. Returns (Right - Left) More... | |
| Area | ( | float | top, |
| float | left, | ||
| float | bottom, | ||
| float | right | ||
| ) |
| bool Contains | ( | Area | area | ) |
| bool Contains | ( | float | x, |
| float | y | ||
| ) |
| bool Contains | ( | Vector2 | point | ) |
| Area Copy | ( | ) |
Returns a copy of the area
| bool Equals | ( | Area | other | ) |
| other |
| override bool Equals | ( | object | obj | ) |
| obj |
| override int GetHashCode | ( | ) |
| void Grow | ( | float | extent | ) |
Adjusts top/left/right/bottom with extent value while keeping center intact.
| void Grow | ( | float | width, |
| float | height | ||
| ) |
Grows width and height with given values while keeping center intact.
| bool Intersects | ( | Area | area | ) |
| void Move | ( | Vector2 | distance | ) |
| void Normalize | ( | ) |
Normalizes the Area. If the width or height happens to be negative this method will swap the Min/Max points so the width and height are positive.
| void SetDimensions | ( | float | width, |
| float | height | ||
| ) |
Sets the width and height while keeping the center intact.
| void SetHeight | ( | float | height | ) |
Sets the height while keeping the center intact.
| void SetWidth | ( | float | width | ) |
Sets the width while keeping the center intact.
| override string ToString | ( | ) |
|
getset |
Gets or Sets the bottom side of the Area
|
get |
Gets the height of the Area. Returns (Top - Bottom)
|
get |
Gets if this is an empty area where min and max equals zero
|
getset |
Gets or Sets the left side of the Area
|
getset |
|
getset |
Gets or Sets the right side of the Area
|
getset |
Gets or Sets the top side of the Area
|
get |
Gets the width of the Area. Returns (Right - Left)