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

A circle centered at origin. More...

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

Public Types

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

Public Member Functions

 CircleShape (double radius=1.0, int segments=32, double start=0.0, double sweep=radians(360.0))
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = ParametricShape
 

Private Attributes

Impl mParametricShape
 

Detailed Description

A circle centered at origin.

Member Typedef Documentation

◆ Edges

◆ Impl

◆ Vertices

Constructor & Destructor Documentation

◆ CircleShape()

CeresEngine::MeshGenerator::CircleShape::CircleShape ( double  radius = 1.0,
int  segments = 32,
double  start = 0.0,
double  sweep = radians(360.0) 
)
Parameters
radiusRadius of the circle
segmentsNumber of subdivisions around the circle.
startCounterclockwise angle relative to x-axis.
sweepCounterclockwise angle.

Member Function Documentation

◆ edges()

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

◆ vertices()

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

Member Data Documentation

◆ mParametricShape

Impl CeresEngine::MeshGenerator::CircleShape::mParametricShape
private

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