Frz::svertex Struct Reference

Short vertex class for normalized vectors. More...

#include <frz_vertex.hpp>

List of all members.

Public Member Functions

 svertex (int16_t _x=0, int16_t _y=0, int16_t _z=0, int16_t _t=0x7fff)
 Default constructor.
 svertex (const svertex &v)
 Copy constructor.
 svertex (const vertex &v)
 vertex-converting constructor.

Public Attributes

int16_t x
 The x coordinate.
int16_t y
 The y coordinate.
int16_t z
 The z coordinate.
int16_t t
 The t coordinate.

Detailed Description

Short vertex class for normalized vectors.

All the vertex coordinates are stored in signed 16-bit fixed-point format with 1 bit for the sign and 15 bits of mantissa. Encoded values hence may only vary from -1 (0x8000) to 0.99997 (0x7FFF). It can be considered sufficient to store normal vectors.


Constructor & Destructor Documentation

Frz::svertex::svertex ( int16_t  _x = 0,
int16_t  _y = 0,
int16_t  _z = 0,
int16_t  _t = 0x7fff 
) [inline]

Default constructor.

Parameters:
_x the x coordinate
_y the y coordinate
_z the z coordinate
_t the t coordinate
Frz::svertex::svertex ( const svertex v  )  [inline]

Copy constructor.

Parameters:
v the object to be copied.
Frz::svertex::svertex ( const vertex v  ) 

vertex-converting constructor.

Parameters:
v the vertex object to be converted.

The documentation for this struct was generated from the following file:
 All Classes Functions Variables Friends
Generated on Thu Jun 10 17:37:47 2010 for freezer-0.1.0 by  doxygen 1.6.3