PlayRho  2.0.0
An interactive physics engine & library.
NgonWithFwdNormals.hpp File Reference

Definition of the NgonWithFwdNormals class template and closely related code. More...

#include <array>
#include <cstddef>
#include <type_traits>
#include <utility>
#include <vector>
#include <playrho/d2/Math.hpp>
Include dependency graph for NgonWithFwdNormals.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  playrho::d2::NgonWithFwdNormals< N >
 N-gon of vertices with counter-clockwise "forward" normals. More...
 
class  playrho::d2::NgonWithFwdNormals< static_cast< std::size_t >(-1)>
 N-gon of runtime-arbitray vertices with counter-clockwise "forward" normals. More...
 

Namespaces

 playrho
 
 playrho::d2
 

Functions

template<std::size_t N>
std::array< UnitVec, N > playrho::d2::GetFwdNormalsArray (const std::array< Length2, N > &vertices)
 Gets forward normals for the given vertices.
 
template<class T , T... ints>
std::array< UnitVec, sizeof...(ints)> playrho::d2::GetFwdNormalsArray (const std::array< Length2, sizeof...(ints)> &vertices, std::integer_sequence< T, ints... > int_seq)
 Gets forward normals for the given vertices.
 

Detailed Description

Definition of the NgonWithFwdNormals class template and closely related code.