Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::circle_shape_t Class Reference

#include <circle_shape.hpp>

Public Types

using edges_t = typename impl_t::edges_t
 
using vertices_t = typename impl_t::vertices_t
 

Public Member Functions

 circle_shape_t (double radius=1.0, int segments=32, double start=0.0, double sweep=gml::radians(360.0))
 
edges_t edges () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A circle centered at origin.

Definition at line 11 of file circle_shape.hpp.

Member Typedef Documentation

◆ edges_t

Definition at line 24 of file circle_shape.hpp.

◆ vertices_t

Definition at line 31 of file circle_shape.hpp.

Constructor & Destructor Documentation

◆ circle_shape_t()

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

Definition at line 5 of file circle_shape.cpp.

Member Function Documentation

◆ edges()

edges_t generator::circle_shape_t::edges ( ) const
inlinenoexcept

Definition at line 26 of file circle_shape.hpp.

◆ vertices()

vertices_t generator::circle_shape_t::vertices ( ) const
inlinenoexcept

Definition at line 33 of file circle_shape.hpp.


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