CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
LinePath.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 "ParametricPath.hpp"
11
13
16 class LinePath {
17 private:
20
21 public:
26 LinePath(const Vector3& start = {0.0, 0.0, -1.0}, const Vector3& end = {0.0, 0.0, 1.0}, const Vector3& normal = {1.0, 0.0, 0.0}, int segments = 8);
27
28 using Edges = typename Impl::Edges;
30
31 using Vertices = typename Impl::Vertices;
33 };
34
35} // namespace CeresEngine::MeshGenerator
A path from point to point.
Definition LinePath.hpp:16
typename Impl::Vertices Vertices
Definition LinePath.hpp:31
Vertices vertices() const noexcept
Definition LinePath.hpp:32
LinePath(const Vector3 &start={0.0, 0.0, -1.0}, const Vector3 &end={0.0, 0.0, 1.0}, const Vector3 &normal={1.0, 0.0, 0.0}, int segments=8)
typename Impl::Edges Edges
Definition LinePath.hpp:28
Edges edges() const noexcept
Definition LinePath.hpp:29
Impl mParametricPath
Definition LinePath.hpp:19
Path generated by evaluating callback functions at even intervals.
Definition ParametricPath.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