GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::Plane< N > Struct Template Reference

Description of an infinite plane in world space. More...

#include <GREM/physics/Shape.hpp>

Public Types

using Unit = typename Position<N>::Unit
 Unit type.
using DimensionType = typename Unit::DimensionType
 Unit dimension type.
using MagnitudeType = typename Unit::MagnitudeType
 Unit magnitude type.

Public Member Functions

bool operator== (const Plane &other) const =default
 Compare this plane to another for equality.

Public Attributes

Position< N > point
 Arbitrary point on the plane's surface.
Direction< N > normal
 Unit direction vector perpendicular to the plane's surface, pointing in the direction the plane is facing.

Static Public Attributes

static constexpr Unit UNIT {}
 Unit.
static constexpr DimensionType DIMENSION {}
 Unit dimension.
static constexpr MagnitudeType MAGNITUDE {}
 Unit magnitude.

Detailed Description

template<size_t N>
struct grem::physics::Plane< N >

Description of an infinite plane in world space.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Member Typedef Documentation

◆ Unit

template<size_t N>
using grem::physics::Plane< N >::Unit = typename Position<N>::Unit

Unit type.

◆ DimensionType

template<size_t N>
using grem::physics::Plane< N >::DimensionType = typename Unit::DimensionType

Unit dimension type.

◆ MagnitudeType

template<size_t N>
using grem::physics::Plane< N >::MagnitudeType = typename Unit::MagnitudeType

Unit magnitude type.

Member Function Documentation

◆ operator==()

template<size_t N>
bool grem::physics::Plane< N >::operator== ( const Plane< N > & other) const
nodiscarddefault

Compare this plane to another for equality.

Parameters
otherthe plane to compare this plane to.
Returns
true if the planes are equal, false otherwise.

Member Data Documentation

◆ UNIT

template<size_t N>
Unit grem::physics::Plane< N >::UNIT {}
staticconstexpr

Unit.

◆ DIMENSION

template<size_t N>
DimensionType grem::physics::Plane< N >::DIMENSION {}
staticconstexpr

Unit dimension.

◆ MAGNITUDE

template<size_t N>
MagnitudeType grem::physics::Plane< N >::MAGNITUDE {}
staticconstexpr

Unit magnitude.

◆ point

template<size_t N>
Position<N> grem::physics::Plane< N >::point

Arbitrary point on the plane's surface.

◆ normal

template<size_t N>
Direction<N> grem::physics::Plane< N >::normal

Unit direction vector perpendicular to the plane's surface, pointing in the direction the plane is facing.


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