PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::NgonWithFwdNormals< N > Class Template Reference

N-gon of vertices with counter-clockwise "forward" normals. More...

#include <playrho/d2/NgonWithFwdNormals.hpp>

Inheritance diagram for playrho::d2::NgonWithFwdNormals< N >:
[legend]

Public Member Functions

constexpr NgonWithFwdNormals () noexcept=default
 Default constructor.
 
constexpr NgonWithFwdNormals (const std::array< Length2, N > &vertices)
 Initializing constructor.
 
constexpr auto GetNormals () const noexcept -> decltype((m_normals))
 Gets the normals of this N-gon.
 
constexpr auto GetVertices () const noexcept -> decltype((m_vertices))
 Gets the vertices of this N-gon.
 

Friends

constexpr friend auto operator== (const NgonWithFwdNormals &lhs, const NgonWithFwdNormals &rhs) noexcept -> bool
 Operator equals support.
 

Detailed Description

template<std::size_t N = static_cast<std::size_t>(-1)>
class playrho::d2::NgonWithFwdNormals< N >

N-gon of vertices with counter-clockwise "forward" normals.

Invariant
The normals provided are always the forward normals of the assigned vertices.

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