#include <SDL3/SDL.h>
#include <cmath>
#include <numbers>
#include <stdexcept>
#include <vector>
#include "../math.hpp"
Go to the source code of this file.
|
| template<typename T , typename U > |
| auto | sKit::geom::circle (float x, float y, float radius, unsigned int resolution=72) -> Geometry< T, U > |
| | constructs data usable for rendering a filled circle. The vertices vector contains the center vertex and the indices are laid out as a triangle list. More...
|
| |
| template<> |
| auto | sKit::geom::circle< SDL_Vertex, int > (float x, float y, float radius, unsigned int resolution) -> Geometry< SDL_Vertex, int > |
| |
| auto | sKit::geom::arc (float x, float y, float radius, float theta, float width, float height, unsigned int resolution, SDL_FColor col) -> Geometry< SDL_Vertex, int > |
| |
| template<typename T > |
| auto | sKit::geom::vertex::arc (float x, float y, float radius, float theta, float width, float height, unsigned int resolution=100) -> std::vector< T > |
| |