#include <Math.hpp>
|
static vec3 | min (const vec3 &a, const vec3 &b) |
|
static vec3 | max (const vec3 &a, const vec3 &b) |
|
static float | length (vec3 v) |
|
static vec3 | normalize (const vec3 &v) |
|
static float | lerp (float a, float b, float t) |
|
static vec3 | lerp (const vec3 &a, const vec3 &b, float t) |
|
static float | radians (float degrees) |
|
static float | degrees (float radians) |
|
static float | clamp (float x, float minVal, float maxVal) |
|
static mat4 | translate (const mat4 &matrix, const vec3 &translation) |
|
static mat4 | rotate (float angle, const vec3 &axis) |
|
static mat4 | lookAt (const vec3 &eye, const vec3 ¢er, const vec3 &up) |
|
static mat4 | perspective (float fov, float aspectRatio, float near, float far) |
|
static vec3 | cross (const vec3 &a, const vec3 &b) |
|
static quat | angleAxis (float angle, const vec3 &axis) |
|
static mat4 | toMat4 (const quat &q) |
|
Definition at line 322 of file Math.hpp.
◆ angleAxis()
static quat math::angleAxis |
( |
float | angle, |
|
|
const vec3 & | axis ) |
|
inlinestatic |
◆ clamp()
static float math::clamp |
( |
float | x, |
|
|
float | minVal, |
|
|
float | maxVal ) |
|
inlinestatic |
◆ cross()
◆ degrees()
static float math::degrees |
( |
float | radians | ) |
|
|
inlinestatic |
◆ length()
static float math::length |
( |
vec3 | v | ) |
|
|
inlinestatic |
◆ lerp() [1/2]
static vec3 math::lerp |
( |
const vec3 & | a, |
|
|
const vec3 & | b, |
|
|
float | t ) |
|
inlinestatic |
◆ lerp() [2/2]
static float math::lerp |
( |
float | a, |
|
|
float | b, |
|
|
float | t ) |
|
inlinestatic |
◆ lookAt()
static mat4 math::lookAt |
( |
const vec3 & | eye, |
|
|
const vec3 & | center, |
|
|
const vec3 & | up ) |
|
inlinestatic |
◆ max()
◆ min()
◆ normalize()
static vec3 math::normalize |
( |
const vec3 & | v | ) |
|
|
inlinestatic |
◆ perspective()
static mat4 math::perspective |
( |
float | fov, |
|
|
float | aspectRatio, |
|
|
float | near, |
|
|
float | far ) |
|
inlinestatic |
◆ radians()
static float math::radians |
( |
float | degrees | ) |
|
|
inlinestatic |
◆ rotate()
static mat4 math::rotate |
( |
float | angle, |
|
|
const vec3 & | axis ) |
|
inlinestatic |
◆ toMat4()
static mat4 math::toMat4 |
( |
const quat & | q | ) |
|
|
inlinestatic |
◆ translate()
static mat4 math::translate |
( |
const mat4 & | matrix, |
|
|
const vec3 & | translation ) |
|
inlinestatic |
The documentation for this class was generated from the following file:
- /home/runner/work/scop/scop/src/Math.hpp