Tatooine
Namespaces | Functions
matrices.h File Reference

Go to the source code of this file.

Namespaces

namespace  tatooine
 
namespace  tatooine::rendering
 

Functions

template<typename Real >
auto constexpr tatooine::rendering::translation_matrix (Real const x, Real const y, Real const z)
 
template<typename Real >
auto constexpr tatooine::rendering::translation_matrix (Vec3< Real > const &t)
 
template<typename Real >
auto constexpr tatooine::rendering::scale_matrix (Real s)
 
template<typename Real >
auto constexpr tatooine::rendering::scale_matrix (Real x, Real y, Real z)
 
template<typename Real >
auto constexpr tatooine::rendering::scale_matrix (Vec3< Real > const &s)
 
template<typename Real >
auto constexpr tatooine::rendering::rotation_matrix (Real angle, Real u, Real v, Real w) -> Mat4< Real >
 
template<typename Real >
auto constexpr tatooine::rendering::rotation_matrix (Real angle, Vec3< Real > const &axis)
 
template<typename Real >
auto constexpr tatooine::rendering::orthographic_matrix (Real const left, Real const right, Real const bottom, Real const top, Real const near, Real const far)
 
template<typename Real >
auto constexpr tatooine::rendering::look_at_matrix_left_hand (Vec3< Real > const &eye, Vec3< Real > const &center, Vec3< Real > const &up={0, 1, 0}) -> Mat4< Real >
 Can be used as transform matrix of an object. More...
 
template<typename Real >
auto constexpr tatooine::rendering::inv_look_at_matrix_left_hand (Vec3< Real > const &eye, Vec3< Real > const &center, Vec3< Real > const &up={0, 1, 0})
 Can be used as view matrix of a camera. More...
 
template<typename Real >
auto constexpr tatooine::rendering::look_at_matrix_right_hand (Vec3< Real > const &eye, Vec3< Real > const &center, Vec3< Real > const &up={0, 1, 0})
 Can be used as transform matrix of an object. More...
 
template<typename Real >
auto constexpr tatooine::rendering::inv_look_at_matrix_right_hand (Vec3< Real > const &eye, Vec3< Real > const &center, Vec3< Real > const &up={0, 1, 0})
 Can be used as view matrix of a camera. More...
 
template<typename Real >
auto constexpr tatooine::rendering::look_at_matrix (Vec3< Real > const &eye, Vec3< Real > const &center, Vec3< Real > const &up={0, 1, 0}) -> Mat4< Real >
 
template<typename Real >
auto constexpr tatooine::rendering::inv_look_at_matrix (Vec3< Real > const &eye, Vec3< Real > const &center, Vec3< Real > const &up={0, 1, 0})
 Can be used as view matrix of a camera. More...
 
template<typename Real >
auto constexpr tatooine::rendering::fps_look_at_matrix_left_hand (Vec3< Real > const &eye, arithmetic auto const pitch, arithmetic auto const yaw) -> Mat4< Real >
 Can be used as transform matrix of an object. More...
 
template<typename Real >
auto constexpr tatooine::rendering::inv_fps_look_at_matrix_left_hand (Vec3< Real > const &eye, arithmetic auto const pitch, arithmetic auto const yaw) -> Mat4< Real >
 Can be used as view matrix of a camera. More...
 
template<typename Real >
auto constexpr tatooine::rendering::fps_look_at_matrix_right_hand (Vec3< Real > const &eye, arithmetic auto const pitch, arithmetic auto const yaw) -> Mat4< Real >
 Can be used as transform matrix of an object. More...
 
template<typename Real >
auto constexpr tatooine::rendering::inv_fps_look_at_matrix_right_hand (Vec3< Real > const &eye, arithmetic auto const pitch, arithmetic auto const yaw) -> Mat4< Real >
 Can be used as view matrix of a camera. More...
 
template<typename Real >
auto constexpr tatooine::rendering::fps_look_at_matrix (Vec3< Real > const &eye, arithmetic auto const pitch, arithmetic auto const yaw) -> Mat4< Real >
 Can be used as transform matrix of an object. More...
 
template<typename Real >
auto constexpr tatooine::rendering::inv_fps_look_at_matrix (Vec3< Real > const &eye, arithmetic auto const pitch, arithmetic auto const yaw)
 Can be used as view matrix of a camera. More...
 
template<typename Real >
auto constexpr tatooine::rendering::frustum_matrix (Real const left, Real const right, Real const bottom, Real const top, Real const near, Real const far)
 
template<typename Real >
auto constexpr tatooine::rendering::perspective_matrix (Real const fov_angles, Real const aspect_ratio, Real const near, Real const far)