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

#include <line_shape.hpp>

Public Types

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

Public Member Functions

 line_shape_t (const gml::dvec2 &start={0.0, -1.0}, const gml::dvec2 &end={0.0, 1.0}, int segments=8)
 
edges_t edges () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A line from a point to a point.

Definition at line 11 of file line_shape.hpp.

Member Typedef Documentation

◆ edges_t

Definition at line 23 of file line_shape.hpp.

◆ vertices_t

Definition at line 30 of file line_shape.hpp.

Constructor & Destructor Documentation

◆ line_shape_t()

line_shape_t::line_shape_t ( const gml::dvec2 & start = {0.0, -1.0},
const gml::dvec2 & end = {0.0, 1.0},
int segments = 8 )
Parameters
startStart position
endEnd position
segmentsNumber of subdivisions

Definition at line 5 of file line_shape.cpp.

Member Function Documentation

◆ edges()

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

Definition at line 25 of file line_shape.hpp.

◆ vertices()

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

Definition at line 32 of file line_shape.hpp.


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