Functions

geometry_3d.cpp File Reference

#include "geometry_3d.h"
#include <math.h>
#include "util/parsing.h"
#include "util/token_stream.h"
Include dependency graph for geometry_3d.cpp:

Go to the source code of this file.

Functions

static void getDictionaryFromLine (std::istream &stream, const char *debug_info, dictionary_t &d)
static float getOptionalFloat (const dictionary_t &d, const char *key)
void parsePointFromDictionary (const dictionary_t &d, point3d_t &p)
void parseRectFromDictionary (const dictionary_t &d, rect3d_t &rect)
point3d_t operator* (const point3d_t &p, float r) throw ()
const vector3d_tnormalize (vector3d_t &v) throw ()
point3d_t readPoint (std::istream &stream)
rect3d_t readRect (std::istream &stream)
void parsePoint3d (std::istream &stream, point3d_t &p)
void parseRect3d (std::istream &stream, rect3d_t &rect)
void parsePoint3d (const char *string, point3d_t &p)
void parseRect3d (const char *string, rect3d_t &r)

Function Documentation

static void getDictionaryFromLine ( std::istream &  stream,
const char *  debug_info,
dictionary_t d 
) [static]

Definition at line 51 of file geometry_3d.cpp.

static float getOptionalFloat ( const dictionary_t d,
const char *  key 
) [static]

Definition at line 72 of file geometry_3d.cpp.

void parsePointFromDictionary ( const dictionary_t d,
point3d_t p 
)

Definition at line 86 of file geometry_3d.cpp.

void parseRectFromDictionary ( const dictionary_t d,
rect3d_t rect 
)

Definition at line 100 of file geometry_3d.cpp.

point3d_t operator* ( const point3d_t p,
float  r 
) throw ()

Definition at line 224 of file geometry_3d.cpp.

const vector3d_t& normalize ( vector3d_t v  )  throw ()

Definition at line 239 of file geometry_3d.cpp.

point3d_t readPoint ( std::istream &  stream  ) 

Definition at line 260 of file geometry_3d.cpp.

rect3d_t readRect ( std::istream &  stream  ) 

Definition at line 283 of file geometry_3d.cpp.

void parsePoint3d ( std::istream &  stream,
point3d_t p 
)

Definition at line 312 of file geometry_3d.cpp.

void parseRect3d ( std::istream &  stream,
rect3d_t rect 
)

Definition at line 332 of file geometry_3d.cpp.

void parsePoint3d ( const char *  string,
point3d_t p 
)

Definition at line 348 of file geometry_3d.cpp.

void parseRect3d ( const char *  string,
rect3d_t r 
)

Definition at line 364 of file geometry_3d.cpp.