Unravel Engine C++ Reference
Loading...
Searching...
No Matches
line_path.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_LINEPATH_HPP
2#define GENERATOR_LINEPATH_HPP
3
4#include "parametric_path.hpp"
5
6namespace generator
7{
8
12{
13private:
15 impl_t parametric_path_;
16
17public:
22 line_path_t(const gml::dvec3& start = {0.0, 0.0, -1.0},
23 const gml::dvec3& end = {0.0, 0.0, 1.0},
24 const gml::dvec3& normal = {1.0, 0.0, 0.0},
25 int segments = 8);
26
27 using edges_t = typename impl_t::edges_t;
28
29 edges_t edges() const noexcept
30 {
31 return parametric_path_.edges();
32 }
33
35
36 vertices_t vertices() const noexcept
37 {
38 return parametric_path_.vertices();
39 }
40};
41} // namespace generator
42
43#endif
btVector3 normal
vertices_t vertices() const noexcept
Definition line_path.hpp:36
typename impl_t::edges_t edges_t
Definition line_path.hpp:27
typename impl_t::vertices_t vertices_t
Definition line_path.hpp:34
line_path_t(const gml::dvec3 &start={0.0, 0.0, -1.0}, const gml::dvec3 &end={0.0, 0.0, 1.0}, const gml::dvec3 &normal={1.0, 0.0, 0.0}, int segments=8)
Definition line_path.cpp:5
edges_t edges() const noexcept
Definition line_path.hpp:29
Path generated by evaluating callback functions at even intervals.
edges_t edges() const noexcept
vertices_t vertices() const noexcept
gen_iterator_t< generator_t > end(const generator_t &) noexcept
Returns a dummy end iterator.
Definition iterator.hpp:104
const segment_list * segments