World of Rigid Bodies (WoRB)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
WoRB::QTensor::Components Struct Reference

Represents tensor components in a column-major order. More...

#include <QTensor.h>

Data Fields

double xx
double yx
double zx
double wx
double xy
double yy
double zy
double wy
double xz
double yz
double zz
double wz
double xw
double yw
double zw
double ww

Detailed Description

Represents tensor components in a column-major order.

Components are stored contiguously in linear memory as:

m.xx, m.yx, m.zx... m.zw, m.ww.

Offset of the component is calculated as row + column * NumRows

Note:
C/C++ stores matrices in row-major order. MATLAB and OpenGL stores matrices in column-major order.

See Row-Major Order on Wikipedia

Definition at line 47 of file QTensor.h.


Field Documentation


The documentation for this struct was generated from the following file: