26#include "primitives/polygon.hpp"
50 Color(1.0f, 0.0f, 0.0f, 1.0f)),
52 Color(1.0f, 0.0f, 0.0f, 1.0f)),
54 Color(1.0f, 0.0f, 0.0f, 1.0f)),
56 Color(1.0f, 0.0f, 0.0f, 1.0f)),
58 _width(1), _height(1) {}
Represents an RGBA color with floating-point channels in [0, 1].
Definition color.hpp:42
Represents a point in 3D space.
Definition point.hpp:35
Represents a polygon primitive for 3D rendering.
Definition polygon.hpp:39
Represents a rectangle primitive. The Rectangle class is a derived class of Polygon that represents a...
Definition rectangle.hpp:37
~Rectangle(void) override=default
Destructor.
float getWidth() const
Accessors.
Definition rectangle.hpp:68
Rectangle & setDimensions(float width, float height)
Sets the dimensions of the rectangle.
Definition rectangle.hpp:85
Rectangle & setHeight(float height)
Sets the height of the rectangle.
Definition rectangle.hpp:101
Rectangle & setWidth(float width)
Sets the width of the rectangle.
Definition rectangle.hpp:115
Rectangle(void)
Default constructor - initializes an square centered at origin with width and height of 1 unit.
Definition rectangle.hpp:47
float getHeight() const
Accessors.
Definition rectangle.hpp:73