API Documentation
Loading...
Searching...
No Matches
MatrixDefinitions< t_type > Struct Template Reference

Provides common definitions for creating 4x4 matrices of certain types. More...

#include <MatrixDefinitions.h>

Static Public Member Functions

static constexpr Matrix< t_type > createOrtho (t_type left, t_type right, t_type bottom, t_type top, t_type near_plane, t_type far_plane)
 
template<class t_angle_type >
static constexpr Matrix< t_type > FrustumTransform (Angle< t_angle_type > y_field_of_view, t_type aspect_ratio, t_type near, t_type far)
 
static constexpr Matrix< t_type > FrustumTransform (t_type left, t_type right, t_type bottom, t_type top, t_type near, t_type far)
 
static constexpr Matrix< t_type > OrthoFrustum (const Vector< 2, t_type > &span, t_type n, t_type f)
 
static constexpr Matrix< t_type > Perspective (t_type fovy, t_type aspect, t_type near_plane, t_type far_plane)
 
static constexpr Matrix< t_type > RotationMatrix (const Vector< 3, t_type > &lookat, const Vector< 3, t_type > &up)
 
static constexpr Matrix< t_type > ViewMatrix (const Vector< 3, t_type > &location, const Vector< 3, t_type > &lookat, const Vector< 3, t_type > &up)
 

Detailed Description

template<class t_type>
struct NDEVR::MatrixDefinitions< t_type >

Provides common definitions for creating 4x4 matrices of certain types.


Member Function Documentation

◆ createOrtho()

template<class t_type >
static constexpr Matrix< t_type > createOrtho ( t_type left,
t_type right,
t_type bottom,
t_type top,
t_type near_plane,
t_type far_plane )
inlinestaticconstexpr

◆ FrustumTransform() [1/2]

template<class t_type >
template<class t_angle_type >
static constexpr Matrix< t_type > FrustumTransform ( Angle< t_angle_type > y_field_of_view,
t_type aspect_ratio,
t_type near,
t_type far )
inlinestaticconstexpr

◆ FrustumTransform() [2/2]

template<class t_type >
static constexpr Matrix< t_type > FrustumTransform ( t_type left,
t_type right,
t_type bottom,
t_type top,
t_type near,
t_type far )
inlinestaticconstexpr

◆ OrthoFrustum()

template<class t_type >
static constexpr Matrix< t_type > OrthoFrustum ( const Vector< 2, t_type > & span,
t_type n,
t_type f )
inlinestaticconstexpr

◆ Perspective()

template<class t_type >
static constexpr Matrix< t_type > Perspective ( t_type fovy,
t_type aspect,
t_type near_plane,
t_type far_plane )
inlinestaticconstexpr

◆ RotationMatrix()

template<class t_type >
static constexpr Matrix< t_type > RotationMatrix ( const Vector< 3, t_type > & lookat,
const Vector< 3, t_type > & up )
inlinestaticconstexpr

◆ ViewMatrix()

template<class t_type >
static constexpr Matrix< t_type > ViewMatrix ( const Vector< 3, t_type > & location,
const Vector< 3, t_type > & lookat,
const Vector< 3, t_type > & up )
inlinestaticconstexpr

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