35 :
Region(position, size.
X, size.
Y) { }
43 Region(
const Point position,
const int width,
const int height)
44 :
Region(position.
X, position.
Y, width, height) { }
53 Region(
const int x,
const int y,
const int width,
const int height)
55 Set(x, y, width, height);
67 void Set(
const int x,
const int y,
const int width,
const int height)
Defines a point in 2D space.
const Vector2 ToVector2() const
Converts the point into a vector.
int X
The x-coordinate of the point.
int Y
The y-coordinate of the point.
Defines a rectangular region defined by a point, height, width.
Point GetTopLeft()
The top left corner of the region.
Point GetTopRight()
The top right corner of the region.
Region(const int x, const int y, const int width, const int height)
Instantiates a new Region object.
Point GetBottomLeft()
The bottom left corner of the region.
void Translate(const Point &point)
Moves the region by the specified amount.
int GetLeft()
The left side of the region.
int GetRight()
The right side of the region.
void Set(const int x, const int y, const int width, const int height)
Sets the components of the region.
int X
The left side of the region.
Region()
Instantiates a new Region object.
int GetTop()
The top of the region.
int GetBottom()
The bottom of the region.
int Height
The height of the region.
Region(const Point position, const Point size)
Instantiates a new Region object.
int Y
The top of the region.
void Translate(const int x, const int y)
Moves the region by the specified amount.
Region(const Point position, const int width, const int height)
Instantiates a new Region object.
Point GetBottomRight()
The bottom right corner of the region.
int Width
The width of the region.
Vector2 GetCenter()
The center position of the region.
Defines a vector with 2 components (x and y).
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...