#include "geometry_3d.h"
#include <math.h>
#include "util/parsing.h"
#include "util/token_stream.h"
Go to the source code of this file.
Functions | |
static void | getDictionaryFromLine (IO std::istream &stream, IN const char *debug_info, OUT dictionary_t &d) |
static float | getOptionalFloat (IN const dictionary_t &d, IN const char *key) |
void | parsePointFromDictionary (IN const dictionary_t &d, OUT point3d_t &p) |
void | parseRectFromDictionary (IN const dictionary_t &d, OUT rect3d_t &rect) |
point3d_t | operator* (IN const point3d_t &p, IN float r) throw () |
const vector3d_t & | normalize (IO vector3d_t &v) throw () |
point3d_t | readPoint (IN std::istream &stream) |
rect3d_t | readRect (IN std::istream &stream) |
void | parsePoint3d (IO std::istream &stream, OUT point3d_t &p) |
void | parseRect3d (IO std::istream &stream, OUT rect3d_t &rect) |
void | parsePoint3d (IN const char *string, OUT point3d_t &p) |
void | parseRect3d (IN const char *string, OUT rect3d_t &r) |
static void getDictionaryFromLine | ( | IO std::istream & | stream, | |
IN const char * | debug_info, | |||
OUT dictionary_t & | d | |||
) | [static] |
Definition at line 51 of file geometry_3d.cpp.
static float getOptionalFloat | ( | IN const dictionary_t & | d, | |
IN const char * | key | |||
) | [static] |
Definition at line 72 of file geometry_3d.cpp.
void parsePointFromDictionary | ( | IN const dictionary_t & | d, | |
OUT point3d_t & | p | |||
) |
Definition at line 86 of file geometry_3d.cpp.
void parseRectFromDictionary | ( | IN const dictionary_t & | d, | |
OUT rect3d_t & | rect | |||
) |
Definition at line 100 of file geometry_3d.cpp.
Definition at line 224 of file geometry_3d.cpp.
const vector3d_t& normalize | ( | IO vector3d_t & | v | ) | throw () |
Definition at line 239 of file geometry_3d.cpp.
point3d_t readPoint | ( | IN std::istream & | stream | ) |
Definition at line 260 of file geometry_3d.cpp.
rect3d_t readRect | ( | IN std::istream & | stream | ) |
Definition at line 283 of file geometry_3d.cpp.
void parsePoint3d | ( | IO std::istream & | stream, | |
OUT point3d_t & | p | |||
) |
Definition at line 312 of file geometry_3d.cpp.
void parseRect3d | ( | IO std::istream & | stream, | |
OUT rect3d_t & | rect | |||
) |
Definition at line 332 of file geometry_3d.cpp.
void parsePoint3d | ( | IN const char * | string, | |
OUT point3d_t & | p | |||
) |
Definition at line 348 of file geometry_3d.cpp.
void parseRect3d | ( | IN const char * | string, | |
OUT rect3d_t & | r | |||
) |
Definition at line 364 of file geometry_3d.cpp.