Clementine
Public Member Functions | Public Attributes | List of all members
Rect2i Class Reference

二维矩形, 整型. More...

#include <Rect2i.h>

Collaboration diagram for Rect2i:
Collaboration graph
[legend]

Public Member Functions

 Rect2i ()=default
 默认构造函数.
 
 Rect2i (const Point2i &origin, Size2i size)
 构造函数. More...
 
 Rect2i (int x, int y, int width, int height)
 构造函数. More...
 
int top () const
 
int bottom () const
 
int left () const
 
int right () const
 
Point2i tl () const
 
Point2i tr () const
 
Point2i bl () const
 
Point2i br () const
 
bool containsPoint (const Point2i &point) const
 
bool intersectsRect (const Rect2i &rect) const
 

Public Attributes

Vector2i origin
 
Size2i size
 

Detailed Description

二维矩形, 整型.

Constructor & Destructor Documentation

◆ Rect2i() [1/2]

Rect2i::Rect2i ( const Point2i origin,
Size2i  size 
)

构造函数.

Parameters
origin矩形坐标, 左上角.
size矩形大小.

◆ Rect2i() [2/2]

Rect2i::Rect2i ( int  x,
int  y,
int  width,
int  height 
)

构造函数.

Parameters
xx坐标.
yy坐标.
width宽度.
height高度.

The documentation for this class was generated from the following files: