Rectangle with rounded corners centered at origin aligned along the x and y axis.
More...
#include <rounded_rectangle_shape.hpp>
|
| using | edges_t = typename impl_t::edges_t |
| |
| using | vertices_t = typename impl_t::vertices_t |
| |
Rectangle with rounded corners centered at origin aligned along the x and y axis.
Definition at line 13 of file rounded_rectangle_shape.hpp.
◆ edges_t
◆ vertices_t
◆ rounded_rectangle_shape_t()
| rounded_rectangle_shape_t::rounded_rectangle_shape_t |
( |
double | radius = 0.25, |
|
|
const gml::dvec2 & | size = {0.75, 0.75}, |
|
|
int | slices = 4, |
|
|
const gml::ivec2 & | segments = {8, 8} ) |
- Parameters
-
| radius | Radius of the rounded corners. |
| size | Half of a length of an edge. |
| slices | Number of subdivisions in each rounded corner. |
| segments | Number of subdivisions along each edge. |
Definition at line 5 of file rounded_rectangle_shape.cpp.
◆ edges()
| edges_t generator::rounded_rectangle_shape_t::edges |
( |
| ) |
const |
|
inlinenoexcept |
◆ vertices()
| vertices_t generator::rounded_rectangle_shape_t::vertices |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files: