JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Rect Struct Reference

Simple struct for a rectangle, can be use with jngl::contains. More...

#include <jngl/Rect.hpp>

Public Member Functions

double getX () const
 
double getY () const
 
double getWidth () const
 
double getHeight () const
 

Public Attributes

Vec2 pos
 
Vec2 size
 

Detailed Description

Simple struct for a rectangle, can be use with jngl::contains.

Definition at line 12 of file Rect.hpp.

Collaboration diagram for Rect:
[legend]

Member Function Documentation

◆ getX()

double getX ( ) const
inline

Definition at line 13 of file Rect.hpp.

◆ getY()

double getY ( ) const
inline

Definition at line 14 of file Rect.hpp.

◆ getWidth()

double getWidth ( ) const
inline

Definition at line 15 of file Rect.hpp.

◆ getHeight()

double getHeight ( ) const
inline

Definition at line 16 of file Rect.hpp.

Member Data Documentation

◆ pos

Vec2 pos

Definition at line 18 of file Rect.hpp.

◆ size

Vec2 size

Definition at line 19 of file Rect.hpp.


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