MinGfx Toolkit  1.0
A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.
Classes | Namespaces | Functions
matrix4.h File Reference
#include <iostream>
#include "point3.h"
#include "vector3.h"
#include "ray.h"

Go to the source code of this file.

Classes

class  mingfx::Matrix4
 A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be compatible with OpenGL. More...
 

Namespaces

 mingfx
 Namespace for the MinGfx Toolkit.
 

Functions

Matrix4 mingfx::operator* (const Matrix4 &m, const float &s)
 Multiply matrix and scalar, returns the new matrix. More...
 
Matrix4 mingfx::operator* (const float &s, const Matrix4 &m)
 Multiply matrix and scalar, returns the new matrix. More...
 
Point3 mingfx::operator* (const Matrix4 &m, const Point3 &p)
 Multiply matrix and point, returns the new point. More...
 
Vector3 mingfx::operator* (const Matrix4 &m, const Vector3 &v)
 Multiply matrix and vector, returns the new vector. More...
 
Matrix4 mingfx::operator* (const Matrix4 &m1, const Matrix4 &m2)
 Multiply two matrices, returns the result. More...
 
Ray mingfx::operator* (const Matrix4 &m, const Ray &r)
 Multiply matrix and the point and vector portions of the ray, returns the new ray. More...
 
std::ostream & mingfx::operator<< (std::ostream &os, const Matrix4 &m)
 
std::istream & mingfx::operator>> (std::istream &is, Matrix4 &m)