CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
LineShape.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
16 class LineShape {
17 private:
20
21 public:
25 LineShape(const Vector2& start = {0.0, -1.0}, const Vector2& end = {0.0, 1.0}, int segments = 8);
26
27 using Edges = typename Impl::Edges;
29
30 using Vertices = typename Impl::Vertices;
32 };
33
34} // namespace CeresEngine::MeshGenerator
A line from a point to a point.
Definition LineShape.hpp:16
Vertices vertices() const noexcept
Definition LineShape.hpp:31
LineShape(const Vector2 &start={0.0, -1.0}, const Vector2 &end={0.0, 1.0}, int segments=8)
Edges edges() const noexcept
Definition LineShape.hpp:28
typename Impl::Edges Edges
Definition LineShape.hpp:27
typename Impl::Vertices Vertices
Definition LineShape.hpp:30
Impl mParametricShape
Definition LineShape.hpp:19
A shape with values evaluated using a callback function.
Definition ParametricShape.hpp:18
Definition AnyGenerator.hpp:12
Iterator< Generator > end(const Generator &) noexcept
Returns a dummy end iterator.
Definition Iterator.hpp:82
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25