CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
ShapeVertex.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
13
17 public:
19
23
24 double texCoord;
25
27
30 Vector2 normal() const noexcept { return -cross(tangent); }
31 };
32
33} // namespace CeresEngine::MeshGenerator
A point on a path.
Definition ShapeVertex.hpp:16
Vector2 position
Definition ShapeVertex.hpp:18
Vector2 normal() const noexcept
Returns the tangent rotated 90 dec clockwise.
Definition ShapeVertex.hpp:30
ShapeVertex()
Definition ShapeVertex.hpp:26
Vector2 tangent
Unit length vector parallel to the shape at this point.
Definition ShapeVertex.hpp:22
double texCoord
Definition ShapeVertex.hpp:24
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25