Classes | Typedefs | Enumerations | Functions

sp::dim Namespace Reference

Basic classes such as vectors, planes, matrix etc. can be found in this namespace. More...

Classes

class  aabbox3d
 Axis aligned bounding box (AABB) class for bounding volume tests. More...
class  linekd
 3D line class for intersection tests or 3D drawing information. More...
class  line3d
class  line2d
class  matrix2
class  matrix3
class  matrix4
class  obbox3d
class  plane3d
class  point2d
class  polygon
class  quadrangle3d
 Quadrangle 3D class which is basically only used for collision detection. More...
class  quaternion4
class  rect2d
class  SecureList
 Thread safe variant of the std::list class. This class is particular used for the NetworkSystem. More...
class  size2d
class  triangle3d
class  UniversalBuffer
class  vector3d
class  vector4d

Typedefs

typedef aabbox3d< s32aabbox3di
typedef aabbox3d< f32aabbox3df
typedef linekd< s32, vector3dline3di
typedef linekd< f32, vector3dline3df
typedef linekd< s32, point2dline2di
typedef linekd< f32, point2dline2df
typedef matrix2< s32matrix2i
typedef matrix2< f32matrix2f
typedef matrix2< f64matrix2d
typedef matrix3< f32matrix3f
typedef matrix3< f64matrix3d
typedef matrix4< f32matrix4f
typedef matrix4< f64matrix4d
typedef obbox3d< s32obbox3di
typedef obbox3d< f32obbox3df
typedef plane3d< s32plane3di
typedef plane3d< f32plane3df
typedef point2d< s32point2di
typedef point2d< f32point2df
typedef polygon< vector3dipolygon3di
typedef polygon< vector3dfpolygon3df
typedef quadrangle3d< s32quadrangle3di
typedef quadrangle3d< f32quadrangle3df
typedef quaternion4< f32quaternion
typedef quaternion4< f32quaternion4f
typedef quaternion4< f64quaternion4d
typedef rect2d< s32rect2di
typedef rect2d< f32rect2df
typedef size2d< s32size2di
typedef size2d< f32size2df
typedef triangle3d< s32triangle3di
typedef triangle3d< f32triangle3df
typedef triangle3d< s32,
vector3di * > 
ptriangle3di
typedef triangle3d< f32,
vector3df * > 
ptriangle3df
typedef vector3d< s32vector3di
typedef vector3d< f32vector3df
typedef vector4d< s32vector4di
typedef vector4d< f32vector4df

Enumerations

enum  ELinePointRelations { LINE_RELATION_START, LINE_RELATION_END, LINE_RELATION_BETWEEN }
 

Relations between closest point on line to point.

More...
enum  EMatrixTypes {
  MATRIX_PROJECTION = 0, MATRIX_VIEW, MATRIX_WORLD, MATRIX_TEXTURE,
  MATRIX_COLOR, MATRIX_COUNT
}
enum  EMatrixCoordinateSystmes { MATRIX_LEFTHANDED, MATRIX_RIGHTHANDED }
 

Matrix coordinate systems.

More...
enum  EPlaneAABBRelations { PLANE_RELATION_FRONT, PLANE_RELATION_BACK, PLANE_RELATION_CLIPPED }
 

Relations between plane and AABB.

More...
enum  EPlanePointRelations { POINT_INFRONTOF_PLANE, POINT_BEHIND_PLANE, POINT_ON_PLANE }
 

Relations between plane and point.

More...
enum  EAxisTypes {
  AXIS_X_POSITIVE = 0, AXIS_X_NEGATIVE, AXIS_Y_POSITIVE, AXIS_Y_NEGATIVE,
  AXIS_Z_POSITIVE, AXIS_Z_NEGATIVE
}
 

Axis direction types.

More...

Functions

template<typename T >
matrix4< T > getRotationMatrix (const matrix4< T > &Mat)
template<typename T >
matrix4< T > getScaleMatrix (matrix4< T > Mat)
template<typename T >
matrix4< T > getRotationMatrix (const vector3d< T > &Rotation)
template<typename T >
matrix4< T > getPositionMatrix (const vector3d< T > &Position)
template<typename T >
matrix4< T > getScaleMatrix (const vector3d< T > &Scale)
template<typename T >
matrix4< T > getDirectionMatrix (const vector3d< T > From, const vector3d< T > To)

Detailed Description

Basic classes such as vectors, planes, matrix etc. can be found in this namespace.


Typedef Documentation


Enumeration Type Documentation

Axis direction types.

Enumerator:
AXIS_X_POSITIVE 
AXIS_X_NEGATIVE 
AXIS_Y_POSITIVE 
AXIS_Y_NEGATIVE 
AXIS_Z_POSITIVE 
AXIS_Z_NEGATIVE 

Relations between closest point on line to point.

Enumerator:
LINE_RELATION_START 

The closest point on line to point is the line start vector.

LINE_RELATION_END 

The closest point on line to point is the line end vector.

LINE_RELATION_BETWEEN 

The closest point on line to point is between the line start- and end vectors.

Matrix coordinate systems.

Enumerator:
MATRIX_LEFTHANDED 

Left-handed coordinate system. Positive Z values point into the screen.

MATRIX_RIGHTHANDED 

Right-handed coordinate system. Positive Z values point out of the screen.

Enumerator:
MATRIX_PROJECTION 

Projection space.

MATRIX_VIEW 

View/ camera/ eye space.

MATRIX_WORLD 

World/ object space.

MATRIX_TEXTURE 

Texture space.

MATRIX_COLOR 

Color space. Actually unused.

MATRIX_COUNT 

Count of matrix types. Don't use this as a type!

Relations between plane and AABB.

Enumerator:
PLANE_RELATION_FRONT 
PLANE_RELATION_BACK 
PLANE_RELATION_CLIPPED 

Relations between plane and point.

Enumerator:
POINT_INFRONTOF_PLANE 
POINT_BEHIND_PLANE 
POINT_ON_PLANE 

Function Documentation

template<typename T >
matrix4<T> sp::dim::getDirectionMatrix ( const vector3d< T >  From,
const vector3d< T >  To 
) [inline]
template<typename T >
matrix4<T> sp::dim::getPositionMatrix ( const vector3d< T > &  Position  )  [inline]
template<typename T >
matrix4<T> sp::dim::getRotationMatrix ( const matrix4< T > &  Mat  )  [inline]
template<typename T >
matrix4<T> sp::dim::getRotationMatrix ( const vector3d< T > &  Rotation  )  [inline]
template<typename T >
matrix4<T> sp::dim::getScaleMatrix ( matrix4< T >  Mat  )  [inline]
template<typename T >
matrix4<T> sp::dim::getScaleMatrix ( const vector3d< T > &  Scale  )  [inline]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines