Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::line_path_t Class Reference

#include <line_path.hpp>

Public Types

using edges_t = typename impl_t::edges_t
 
using vertices_t = typename impl_t::vertices_t
 

Public Member Functions

 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)
 
edges_t edges () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A path from point to point.

Definition at line 11 of file line_path.hpp.

Member Typedef Documentation

◆ edges_t

Definition at line 27 of file line_path.hpp.

◆ vertices_t

Definition at line 34 of file line_path.hpp.

Constructor & Destructor Documentation

◆ line_path_t()

line_path_t::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 )
Parameters
startStart point of the line.
endEnd point of the line.
normalLine normal. Should be parallel to the line.
segmentsNumber of subdivisions along the line.

Definition at line 5 of file line_path.cpp.

Member Function Documentation

◆ edges()

edges_t generator::line_path_t::edges ( ) const
inlinenoexcept

Definition at line 29 of file line_path.hpp.

◆ vertices()

vertices_t generator::line_path_t::vertices ( ) const
inlinenoexcept

Definition at line 36 of file line_path.hpp.


The documentation for this class was generated from the following files: