The small3d library
Classes | Namespaces | Functions
Math.hpp File Reference

Vectors, matrices and other math things. More...

Go to the source code of this file.

Classes

class  small3d::Vec3
 3 component float vector More...
 
class  small3d::Vec3i
 3 component integer vector More...
 
class  small3d::Vec4
 4 component vector More...
 
class  small3d::Vec4i
 4 component integer vector More...
 
class  small3d::Mat4
 4x4 float matrix More...
 
struct  small3d::Quat
 

Namespaces

 small3d
 

Functions

Mat4 small3d::translate (const Mat4 &mat, const Vec3 &vec)
 
Mat4 small3d::scale (const Mat4 &mat, const Vec3 &vec)
 
Mat4 small3d::rotate (const Mat4 &mat, const float angle, const Vec3 &vec)
 
Mat4 small3d::ortho (float left, float right, float bottom, float top, float zNear, float zFar)
 
Mat4 small3d::perspective (float fovy, float aspect, float zNear, float zFar)
 
Mat4 small3d::inverse (const Mat4 mat)
 
float * small3d::Value_ptr (Mat4 &mat)
 
float * small3d::Value_ptr (Vec3 &vec)
 
float * small3d::Value_ptr (Vec4 &vec)
 

Detailed Description

Vectors, matrices and other math things.

Created on: 2024/11/12 Author: Dimitri Kourkoulis License: BSD 3-Clause License (see LICENSE file)