smk::Rectangle Struct Reference

Description

Definition at line 12 of file Rectangle.hpp.

Public Member Functions

float width () const
 
float height () const
 

Public Attributes

float left
 
float top
 
float right
 
float bottom
 

Member Function Documentation

◆ height()

float smk::Rectangle::height ( ) const
inline

Definition at line 19 of file Rectangle.hpp.

19{ return bottom - top; }

◆ width()

float smk::Rectangle::width ( ) const
inline

Definition at line 18 of file Rectangle.hpp.

18{ return right - left; }

Member Data Documentation

◆ bottom

float smk::Rectangle::bottom

Definition at line 16 of file Rectangle.hpp.

◆ left

float smk::Rectangle::left

Definition at line 13 of file Rectangle.hpp.

◆ right

float smk::Rectangle::right

Definition at line 15 of file Rectangle.hpp.

◆ top

float smk::Rectangle::top

Definition at line 14 of file Rectangle.hpp.


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