ML Reference
MeVis/Foundation/Sources/MLLinearAlgebra/mlVector4.h File Reference

Template class for a 4D vector for floating point types, derived from FloatingPointVector. More...

#include "mlLinearAlgebraSystem.h"
#include "mlLinearAlgebraDefs.h"
#include "mlFloatingPointVector.h"
#include "mlVector2.h"
#include "mlVector3.h"
#include "mlMatrix3.h"
#include "mlMatrix4.h"

Go to the source code of this file.

Classes

class  ml::Tvec4< DT >
 A four dimensional vector class for floating point types. More...

Namespaces

namespace  ml
 

Define the namespace name like in the ML. Default is ml.


Defines

#define _ML_VEC4_RC(i)   a[i][0]*v[0] + a[i][1]*v[1] + a[i][2]*v[2] + a[i][3]*v[3]
 Internal helper macro for tMat4 with Tvec4 multiplications. Do not use.

Typedefs

Specializations for float, double and long double.
typedef Tvec4< MLfloatml::Vector4f
 A vector with 4 components of type float.
typedef Tvec4< MLdoubleml::Vector4d
 A vector with 4 components of type double.
typedef Tvec4< MLldoubleml::Vector4ld
 A vector with 4 components of type long double.
typedef Tvec4< MLdoubleml::Vector4
 A vector with 4 components of type double.
Deprecated
typedef Tvec4< MLfloatml::vecf4
typedef Tvec4< MLdoubleml::vecd4
typedef Tvec4< MLldoubleml::vecld4
typedef Tvec4< MLdoubleml::vec4

Functions

template<class DT >
Tvec4< DT > ml::operator* (const Tmat4< DT > &a, const Tvec4< DT > &v)
 Multiplies 4x4 matrix a with vector v.
template<class DT >
Tvec4< DT > ml::operator* (const Tvec4< DT > &v, const Tmat4< DT > &a)
 Multiplies vector v with 4x4 matrix a.

Detailed Description

Template class for a 4D vector for floating point types, derived from FloatingPointVector.

Author:
Florian Link, Wolf Spindler
Date:
09/2001

Definition in file mlVector4.h.


Define Documentation

#define _ML_VEC4_RC (   i)    a[i][0]*v[0] + a[i][1]*v[1] + a[i][2]*v[2] + a[i][3]*v[3]

Internal helper macro for tMat4 with Tvec4 multiplications. Do not use.

Definition at line 154 of file mlVector4.h.

Referenced by ml::operator*().