CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::RoundedRectangleShape Class Reference

Rectangle with rounded corners centered at origin aligned along the x and y axis. More...

#include <CeresEngine/Mesh/Generator/RoundedRectangleShape.hpp>

Public Types

using Edges = typename Impl::Edges
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 RoundedRectangleShape (double radius=0.25, const Vector2 &size={0.75, 0.75}, int slices=4, const Vector2i &segments={8, 8})
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = MergeShape< LineShape, TranslateShape< CircleShape >, LineShape, TranslateShape< CircleShape >, LineShape, TranslateShape< CircleShape >, LineShape, TranslateShape< CircleShape > >
 

Private Attributes

Impl mMergeShape
 

Detailed Description

Rectangle with rounded corners centered at origin aligned along the x and y axis.

Member Typedef Documentation

◆ Edges

◆ Impl

◆ Vertices

Constructor & Destructor Documentation

◆ RoundedRectangleShape()

CeresEngine::MeshGenerator::RoundedRectangleShape::RoundedRectangleShape ( double  radius = 0.25,
const Vector2 size = {0.75, 0.75},
int  slices = 4,
const Vector2i &  segments = {8, 8} 
)
Parameters
radiusRadius of the rounded corners.
sizeHalf of a length of an edge.
slicesNumber of subdivisions in each rounded corner.
segmentsNumber of subdivisions along each edge.

Member Function Documentation

◆ edges()

Edges CeresEngine::MeshGenerator::RoundedRectangleShape::edges ( ) const
inlinenoexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::RoundedRectangleShape::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mMergeShape

Impl CeresEngine::MeshGenerator::RoundedRectangleShape::mMergeShape
private

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