luna engine
software engine
Loading...
Searching...
No Matches
luna::item::rectangle Struct Reference

#include <baseComponents.h>

Public Member Functions

_ALWAYS_INLINE_ bool hasPoint (const glm::vec2 &point)
 
_ALWAYS_INLINE_ float width ()
 
_ALWAYS_INLINE_ float height ()
 
_ALWAYS_INLINE_ void setWidth (float width)
 
_ALWAYS_INLINE_ float distanceTo (const glm::vec2 &pos)
 

Public Attributes

glm::vec2 start = glm::vec2(0.0f)
 
glm::vec2 end = glm::vec2(0.0f)
 
glm::vec2 position
 

Member Function Documentation

◆ distanceTo()

_ALWAYS_INLINE_ float luna::item::rectangle::distanceTo ( const glm::vec2 &  pos)
inline

◆ hasPoint()

_ALWAYS_INLINE_ bool luna::item::rectangle::hasPoint ( const glm::vec2 &  point)
inline

◆ height()

_ALWAYS_INLINE_ float luna::item::rectangle::height ( )
inline

◆ setWidth()

_ALWAYS_INLINE_ void luna::item::rectangle::setWidth ( float  width)
inline

◆ width()

_ALWAYS_INLINE_ float luna::item::rectangle::width ( )
inline

Member Data Documentation

◆ end

glm::vec2 luna::item::rectangle::end = glm::vec2(0.0f)

◆ position

glm::vec2 luna::item::rectangle::position

◆ start

glm::vec2 luna::item::rectangle::start = glm::vec2(0.0f)

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