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

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

#include <rounded_rectangle_shape.hpp>

Public Types

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

Public Member Functions

 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})
 
edges_t edges () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

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

Definition at line 13 of file rounded_rectangle_shape.hpp.

Member Typedef Documentation

◆ edges_t

using generator::rounded_rectangle_shape_t::edges_t = typename impl_t::edges_t

Definition at line 36 of file rounded_rectangle_shape.hpp.

◆ vertices_t

using generator::rounded_rectangle_shape_t::vertices_t = typename impl_t::vertices_t

Definition at line 43 of file rounded_rectangle_shape.hpp.

Constructor & Destructor Documentation

◆ 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
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.

Definition at line 5 of file rounded_rectangle_shape.cpp.

Member Function Documentation

◆ edges()

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

Definition at line 38 of file rounded_rectangle_shape.hpp.

◆ vertices()

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

Definition at line 45 of file rounded_rectangle_shape.hpp.


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