CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CircleShape.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "ParametricShape.hpp"
11
13
17 private:
20
21 public:
26 CircleShape(double radius = 1.0, int segments = 32, double start = 0.0, double sweep = radians(360.0));
27
28 using Edges = typename Impl::Edges;
30
31 using Vertices = typename Impl::Vertices;
33 };
34
35} // namespace CeresEngine::MeshGenerator
A circle centered at origin.
Definition CircleShape.hpp:16
Vertices vertices() const noexcept
Definition CircleShape.hpp:32
typename Impl::Edges Edges
Definition CircleShape.hpp:28
CircleShape(double radius=1.0, int segments=32, double start=0.0, double sweep=radians(360.0))
Impl mParametricShape
Definition CircleShape.hpp:19
Edges edges() const noexcept
Definition CircleShape.hpp:29
typename Impl::Vertices Vertices
Definition CircleShape.hpp:31
A shape with values evaluated using a callback function.
Definition ParametricShape.hpp:18
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25