wren
Vulkan-based game engine
Loading...
Searching...
No Matches
geometry.cpp File Reference
#include "geometry.hpp"
#include <cmath>
#include "matrix.hpp"
#include "vector.hpp"
Include dependency graph for geometry.cpp:

Namespaces

namespace  wren
 
namespace  wren::math
 

Functions

auto wren::math::look_at (const Vec3f &position, const Vec3f &target, const Vec3f &world_up) -> Mat4f
 
auto wren::math::translate (Mat4f mat, Vec4f offset) -> Mat4f
 
auto wren::math::translate (Mat4f mat, Vec3f offset) -> Mat4f
 
auto wren::math::rotate (const Mat4f &matrix, float rotation, const Vec3f &axis) -> Mat4f