wren
Vulkan-based game engine
Loading...
Searching...
No Matches
geometry.hpp File Reference
#include <numbers>
#include "matrix.hpp"
#include "vector.hpp"
Include dependency graph for geometry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  wren
 
namespace  wren::math
 

Functions

auto wren::math::degrees (float radian) -> float
 
auto wren::math::radians (float degrees) -> float
 
auto wren::math::translate (Mat4f mat, Vec4f offset) -> Mat4f
 
auto wren::math::translate (Mat4f mat, Vec3f offset) -> Mat4f
 
auto wren::math::look_at (const Vec3f &position, const Vec3f &target, const Vec3f &world_up) -> Mat4f
 
auto wren::math::rotate (const Mat4f &matrix, float rotation, const Vec3f &axis) -> Mat4f
 
template<typename T >
auto wren::math::ortho (T left, T right, T bottom, T top)
 
template<typename T >
auto wren::math::ortho (T left, T right, T bottom, T top, T z_near, T z_far)
 
template<typename T >
auto wren::math::perspective (T fov_y, T aspect, T z_near, T z_far)