The small3d library
Tiny C++ 3D game development library for Win/MacOS/Linux/FreeBSD
|
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... | |
class | small3d::Quat |
Quaternion. More... | |
Namespaces | |
namespace | small3d |
Functions | |
Vec3 | small3d::operator* (const float v, const Vec3 &vec) |
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) |
Vec3 | small3d::clamp (const Vec3 &vec, const Vec3 &minv, const Vec3 &maxv) |
float | small3d::dot (const Vec3 &vec1, const Vec3 &vec2) |
Vec3 | small3d::cross (const Vec3 &vec1, const Vec3 &vec2) |
float | small3d::length (const Vec3 &vec) |
float * | small3d::Value_ptr (Mat4 &mat) |
float * | small3d::Value_ptr (Vec3 &vec) |
float * | small3d::Value_ptr (Vec4 &vec) |
Vectors, matrices and other math things.
Created on: 2024/11/12 Author: Dimitri Kourkoulis License: BSD 3-Clause License (see LICENSE file)