syBR::Core Namespace Reference

core classes More...


Classes

class  AABB
 Axis-Aligned Bounding Box class. More...
class  FileSystem
 File system management class. More...
class  Logger
 Logger class. More...
class  XMLNode
 XML node class. More...
class  XMLFile
 XML file class. More...
class  Math
 Mathematical constants class. More...
class  MathHelpers
 Mathematical helpers operations class. More...
class  Matrix
 4x4 matrix class More...
class  Plane
 3D plane class More...
class  Vector2D
 2D vector class More...
class  Vector3D
 3D vector class More...

Functions

Matrix operator * (const float scalar, const Matrix &matrix)
 Multiply a matrix by a scalar.
Matrix operator/ (const float scalar, const Matrix &matrix)
 Divide a matrix by a scalar.
Vector3D operator * (const Vector3D &vector, const Matrix &matrix)
 Multiply a matrix by a vector.


Detailed Description

core classes

Function Documentation

Vector3D syBR::Core::operator * ( const Vector3D &  vector,
const Matrix &  matrix 
)

Multiply a matrix by a vector.

Parameters:
vector Vector to multiply the matrix to
matrix Matrix to be multiplied by
Returns:
Vector containing the result of the multiplication of the matrix by the vector
Note:
This is a convenience operator used to allow two syntaxes for the multiplication of a matrix by a vector even if it isn't strictly correct mathematically speaking :
  • matrix * vector
  • vector * matrix

Matrix syBR::Core::operator * ( const float  scalar,
const Matrix &  matrix 
)

Multiply a matrix by a scalar.

The multiplication of a matrix by a scalar is simple: every element of the matrix will be multiplied by this scalar.

Parameters:
scalar Scalar to multiply the matrix by
matrix Matrix to be multiplied
Returns:
Matrix containing the result of the multiplication of the matrix by the scalar

Matrix syBR::Core::operator/ ( const float  scalar,
const Matrix &  matrix 
)

Divide a matrix by a scalar.

The division of a matrix by a scalar is simple: every element of the matrix will be divided by this scalar.

Parameters:
scalar Scalar to divide the matrix by
matrix Matrix to be divided
Returns:
One of these:
  • Matrix containing the result of the division of the matrix by the scalar
  • Unmodified matrix if scalar is zero


Copyright © 2008 by Sebastien Frippiat
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:33 2008