GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Rect Struct Reference

#include <Graph.hh>

Collaboration diagram for Rect:

Public Member Functions

std::pair< Rect, Rect > SplitX ()
bool InsideRect (Point2d p)
Point2d RectInternalCoordinates (Point2d p)

Public Attributes

Point2d tl
Point2d br
float x
float y
float width
float height
int x
int y
int w
int h

Member Function Documentation

◆ InsideRect()

bool Rect::InsideRect ( Point2d p)
inline

◆ RectInternalCoordinates()

Point2d Rect::RectInternalCoordinates ( Point2d p)
inline

◆ SplitX()

std::pair< Rect, Rect > Rect::SplitX ( )
inline

Member Data Documentation

◆ br

Point2d Rect::br

◆ h

int Rect::h

◆ height

float Rect::height

◆ tl

Point2d Rect::tl

◆ w

int Rect::w

◆ width

float Rect::width

◆ x [1/2]

float Rect::x

◆ x [2/2]

int Rect::x

◆ y [1/2]

float Rect::y

◆ y [2/2]

int Rect::y

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