|
CeresEngine 0.2.0
A game development framework
|
Rectangle centered at origin aligned along the x and y axis. More...
#include <CeresEngine/Mesh/Generator/RectangleShape.hpp>
Public Types | |
| using | Edges = typename Impl::Edges |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| RectangleShape (const Vector2 &size=Vector2{1.0, 1.0}, const Vector2i &segments=Vector2i{8, 8}) | |
| Edges | edges () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = MergeShape< LineShape, LineShape, LineShape, LineShape > |
Private Attributes | |
| Impl | mMergeShape |
Rectangle centered at origin aligned along the x and y axis.
| using CeresEngine::MeshGenerator::RectangleShape::Edges = typename Impl::Edges |
|
private |
| using CeresEngine::MeshGenerator::RectangleShape::Vertices = typename Impl::Vertices |
| CeresEngine::MeshGenerator::RectangleShape::RectangleShape | ( | const Vector2 & | size = Vector2{1.0, 1.0}, |
| const Vector2i & | segments = Vector2i{8, 8} |
||
| ) |
| size | Half of the length of an edge. |
| segments | Number of subdivisions per edge. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |