AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Aire::Rectangle Struct Reference

A 2D rectangle in 3D space. More...

#include <Particle.h>

Public Member Functions

glm::vec3 getNormal ()
 
 Rectangle (float width, float length, float height, RectangleType type, glm::vec2 initialPosition=glm::vec2(0.0f))
 

Public Attributes

glm::vec3 leftTop
 
glm::vec3 leftBottom
 
glm::vec3 rightBottom
 
glm::vec3 rightTop
 

Detailed Description

A 2D rectangle in 3D space.

Constructor & Destructor Documentation

◆ Rectangle()

Aire::Rectangle::Rectangle ( float width,
float length,
float height,
RectangleType type,
glm::vec2 initialPosition = glm::vec2(0.0f) )
inline

Create 2D rectangle in the world

Parameters
widthWidth of the rectangle
lengthLength of the rectangle
heightHeight of the rectangle
typeRectangle type (plane XY, XZ, or YZ)
initialPositionPosition in the world

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