Short vertex class for normalized vectors. More...
#include <frz_vertex.hpp>
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. | |
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.
| Frz::svertex::svertex | ( | int16_t | _x = 0, |
|
| int16_t | _y = 0, |
|||
| int16_t | _z = 0, |
|||
| int16_t | _t = 0x7fff | |||
| ) | [inline] |
Default constructor.
| _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.
| v | the object to be copied. |
| Frz::svertex::svertex | ( | const vertex & | v | ) |
vertex-converting constructor.
| v | the vertex object to be converted. |
1.6.3