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

#include <shape_vertex.hpp>

Public Member Functions

 shape_vertex_t ()
 
gml::dvec2 normal () const noexcept
 

Public Attributes

gml::dvec2 position
 
gml::dvec2 tangent
 
double tex_coord
 

Detailed Description

A point on a path. Position and assosiated coordinate system.

Definition at line 11 of file shape_vertex.hpp.

Constructor & Destructor Documentation

◆ shape_vertex_t()

generator::shape_vertex_t::shape_vertex_t ( )
inline

Definition at line 22 of file shape_vertex.hpp.

Member Function Documentation

◆ normal()

gml::dvec2 generator::shape_vertex_t::normal ( ) const
inlinenoexcept

Returns the tangent rotated 90 dec clockwise. Also the x-axis of the shape's local coordinate system.

Definition at line 28 of file shape_vertex.hpp.

Member Data Documentation

◆ position

gml::dvec2 generator::shape_vertex_t::position

Definition at line 14 of file shape_vertex.hpp.

◆ tangent

gml::dvec2 generator::shape_vertex_t::tangent

Unit length vector parallel to the shape at this point. Also the y-axis of the shape's local coordinate system.

Definition at line 18 of file shape_vertex.hpp.

◆ tex_coord

double generator::shape_vertex_t::tex_coord

Definition at line 20 of file shape_vertex.hpp.


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