32 :
Region(position, size.
X, size.
Y) { }
40 Region(
const Point position,
const int width,
const int height)
41 :
Region(position.
X, position.
Y, width, height) { }
50 Region(
const int x,
const int y,
const int width,
const int height)
52 Set(x, y, width, height);
64 void Set(
const int x,
const int y,
const int width,
const int height)
int Width
The width of the region.
Definition: Region.h:131
Region(const Point position, const int width, const int height)
Instantiates a new Region object.
Definition: Region.h:40
int Height
The height of the region.
Definition: Region.h:132
Region(const int x, const int y, const int width, const int height)
Instantiates a new Region object.
Definition: Region.h:50
int X
The x-coordinate of the point.
Definition: Point.h:97
int GetRight()
The right side of the region.
Definition: Region.h:86
void Translate(const Point &point)
Moves the region by the specified amount.
Definition: Region.h:122
int Y
The y-coordinate of the point.
Definition: Point.h:98
Defines a vector with 2 components (x and y). This is additional information...
Definition: Vector2.h:18
void Translate(const int x, const int y)
Moves the region by the specified amount.
Definition: Region.h:112
int GetBottom()
The bottom of the region.
Definition: Region.h:78
Region(const Point position, const Point size)
Instantiates a new Region object.
Definition: Region.h:31
void Set(const int x, const int y, const int width, const int height)
Sets the components of the region.
Definition: Region.h:64
Region()
Instantiates a new Region object.
Definition: Region.h:23
int X
The left side of the region.
Definition: Region.h:129
Point GetBottomLeft()
The bottom left corner of the region.
Definition: Region.h:99
Defines a rectangular region defined by a point, height, width.
Definition: Region.h:17
Point GetTopLeft()
The top left corner of the region.
Definition: Region.h:91
Point GetTopRight()
The top right corner of the region.
Definition: Region.h:95
const Vector2 ToVector2() const
Converts the point into a vector.
Definition: Point.cpp:91
Defines a point in 2D space.
Definition: Point.h:19
int Y
The top of the region.
Definition: Region.h:130
Vector2 GetCenter()
The center position of the region.
Definition: Region.h:107
int GetTop()
The top of the region.
Definition: Region.h:74
Point GetBottomRight()
The bottom right corner of the region.
Definition: Region.h:103
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition: Animation.cpp:14
int GetLeft()
The left side of the region.
Definition: Region.h:82