Unravel Engine C++ Reference
Loading...
Searching...
No Matches
shape_vertex.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_SHAPEGENERATOR_HPP
2#define GENERATOR_SHAPEGENERATOR_HPP
3
4#include "math.hpp"
5
6namespace generator
7{
8
12{
13public:
14 gml::dvec2 position;
15
18 gml::dvec2 tangent;
19
20 double tex_coord;
21
25
28 gml::dvec2 normal() const noexcept
29 {
30 return -gml::cross(tangent);
31 }
32};
33} // namespace generator
34
35#endif
gml::dvec2 normal() const noexcept
glm::tvec2< T > cross(const glm::tvec2< T > &v)
Definition math.hpp:108