unlogic
Loading...
Searching...
No Matches
unlogic::Rect Class Reference

#include <Rect.h>

Inheritance diagram for unlogic::Rect:
unlogic::Shape

Public Member Functions

 Rect (std::array< glm::vec2, 4 > const &corners)
 
 Rect (glm::vec2 const &center, glm::vec2 const &size)
 
 Rect ()=default
 
- Public Member Functions inherited from unlogic::Shape
std::vector< Vertex > constGetVertices () const
 

Additional Inherited Members

- Protected Attributes inherited from unlogic::Shape
Color color = Color::Green
 
std::vector< Vertexvertices
 

Detailed Description

Definition at line 9 of file Rect.h.

Constructor & Destructor Documentation

◆ Rect() [1/3]

Rect::Rect ( std::array< glm::vec2, 4 > const corners)

Definition at line 6 of file Rect.cpp.

◆ Rect() [2/3]

Rect::Rect ( glm::vec2 const center,
glm::vec2 const size 
)

Definition at line 18 of file Rect.cpp.

◆ Rect() [3/3]

unlogic::Rect::Rect ( )
default

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