Maya 1.0
|
Matrix representation for the GPU. More...
#include <evectorfloat.h>
Public Member Functions | |
Matrix4Float () | |
Create a matrix. | |
Matrix4Float (float) | |
Create a diagonal matrix. | |
Matrix4Float (float[16]) | |
Create a matrix from coeficients. | |
Matrix4Float (const Matrix4 &) | |
Create a matrix of float from a matrix of double. | |
float & | operator() (int, int) |
Accessor. | |
Matrix4Float | Inverse () const |
Create the inverse of a Matrix. | |
Static Public Member Functions | |
static Matrix4Float | LookAt (const Vector &eye, const Vector &at, const Vector &up) |
Create a look-at matrix from (eye, at, up) vectors. | |
static Matrix4Float | Perspective (float fovy, float zNear, float zFar, float width, float height) |
Create a perspective projection matrix. | |
static Matrix4Float | Orthographic (float left, float right, float bottom, float top, float zNear, float zFar) |
Create an orthographic projection matrix. | |
Public Attributes | |
float | r [16] = { 1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0 } |
Coefficients, set to identity matrix. In column major. | |
Friends | |
Matrix4Float | operator* (const Matrix4Float &u, const Matrix4Float &v) |
Matrix multiplication. | |
bool | operator!= (const Matrix4Float &u, const Matrix4Float &v) |
Matrix comparison. | |
std::ostream & | operator<< (std::ostream &s, const Matrix4Float &matrix) |
Overloaded. | |
Matrix representation for the GPU.
Matrix4Float Matrix4Float::Inverse | ( | ) | const |
Create the inverse of a Matrix.
m | : the matrix to invert |
References Matrix4::Inverse(), and Matrix4Float().
Referenced by SphereTracingWidget::RenderSDF().
|
static |
Create a look-at matrix from (eye, at, up) vectors.
eye | camera eye |
at | camera look-at point |
up | camera up vector |
References Matrix4Float().
Referenced by SphereTracingWidget::RenderPoints(), and SphereTracingWidget::RenderSDF().
|
static |
Create an orthographic projection matrix.
l | coordinate of the left vertical clipping plane |
r | coordinate of the right vertical clipping plane |
b | coordinate of the bottom horizontal clipping plane |
t | coordinate of the top horizontal clipping plane |
n,f | camera near and far plane |
References Matrix4Float(), and r.
Referenced by SphereTracingWidget::RenderPoints(), and SphereTracingWidget::RenderSDF().
|
static |
Create a perspective projection matrix.
fovy | Camera vertical fov (in degrees). |
zNear,zFar | Planes. |
width,height | Camera dimension. |
References Math::DegreeToRadian(), and Matrix4Float().
Referenced by SphereTracingWidget::RenderPoints(), and SphereTracingWidget::RenderSDF().
|
friend |
Overloaded.
s | Stream. |
matrix | The matrix. |
References Matrix4Float(), and operator<<.
Referenced by operator<<.