src/Matrix.h File Reference

#include <cassert>
#include <iosfwd>
#include "Vec3f.h"
#include "Ray.h"

Include dependency graph for Matrix.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Matrix

Functions

Matrix operator * (const Matrix &m, const float f)
Matrix operator * (const float f, const Matrix &m)
Vec3f operator * (const Matrix &m, const Vec3f &point)
Vec3f operator * (const Vec3f &point, const Matrix &m)
Ray operator * (const Matrix &m, const Ray &r)
Ray operator * (const Ray &, const Matrix &)
Matrix operator * (const Matrix &m1, const Matrix &m2)
std::ostream & operator<< (std::ostream &o, const Matrix &m)


Function Documentation

Matrix operator * ( const Matrix m1,
const Matrix m2 
) [inline]

Multiply matrix with matrix

Definition at line 336 of file Matrix.h.

References Matrix::mValues.

Ray operator * ( const Ray ,
const Matrix  
) [inline]

Multiply a ray with a matrix. This operation does not make any sense

Definition at line 326 of file Matrix.h.

References LOG.

Ray operator * ( const Matrix m,
const Ray r 
) [inline]

Multiply a matrix with a ray. This transforms the ray's coordinate system as given by the matrix. All attributes are either transformed accordingly or preserved.

Parameters:
m Matrix discribing coordinate system
r Ray to transform
Returns:
Transformed ray

Definition at line 306 of file Matrix.h.

References Ray::dir(), Ray::hit(), Ray::influence(), Ray::init(), Vec3f::length(), Ray::obj(), Ray::org(), Ray::recDeep(), Ray::setHit(), Ray::setInfluence(), Ray::setObj(), Ray::setUV(), Ray::t(), Matrix::transformVector(), Ray::u(), and Ray::v().

Vec3f operator * ( const Vec3f point,
const Matrix m 
) [inline]

Multiply a 3D point with a matrix (and doing the right transformation from 4 dim to 3 dim)

Definition at line 281 of file Matrix.h.

References LOG, and Matrix::mValues.

Vec3f operator * ( const Matrix m,
const Vec3f point 
) [inline]

Multiply a matrix with a 3D point (and doing the right transformation from 4 dim to 3 dim)

Definition at line 262 of file Matrix.h.

References Matrix::mValues.

Matrix operator * ( const float  f,
const Matrix m 
) [inline]

Multiply matrix with float

Definition at line 246 of file Matrix.h.

References Matrix::mValues.

Matrix operator * ( const Matrix m,
const float  f 
) [inline]

Multiply matrix with float

Definition at line 230 of file Matrix.h.

References Matrix::mValues.

std::ostream& operator<< ( std::ostream &  o,
const Matrix m 
)

Output operator

Definition at line 10 of file Matrix.cpp.

References Matrix::mValues.


Generated on Fri Feb 1 00:01:50 2008 for Grayfall by  doxygen 1.5.1