OBD:Data types: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (to be completed...)
 
Line 2: Line 2:
===16 chars===
===16 chars===
===32 chars===
===32 chars===
*[[AGDB]] raw/sep parts
*[[AISA]]
*[[ONIE]]
*[[SABD]]
*...
===64 chars===
===64 chars===
*[[AITR]]
*[[ONIE]]
*...
===132 chars===
maybe 128?
*[[ONIE]]
*...
----


----
==Floats==
==Floats==
===Float===
===Float===

Revision as of 16:11, 21 March 2007

Strings

16 chars

32 chars

64 chars

132 chars

maybe 128?


Floats

Float

4-byte IEEE float

Vector

3 floats define a vector in 3D space

Axis-aligned bounding box

2 vectors define a min corner and a max corner

Plane

4 floats define an oriented plane in 3D

Quaternion

4 floats define a quaternion

(always normalized, i.e., rotation w/o scaling?)

Transformation matrix

12 floats define a 4x4 transformation matrix

(translation, rotation, scaling, mirroring)



Integers

Mostly non-negative indices, so possibly unsigned.

One known exception: the quantized Euler angles in TRAM

short

long

flagged long

The lower bits are used for an ID, the high bit is a flag

quantized float

e.g., quantized Euler angles in TRAM_



Bitsets

1 byte

2 bytes

4 bytes

8 bytes