--- a/common.h Thu Mar 21 18:26:57 2013 +0200 +++ b/common.h Sun Mar 24 01:05:59 2013 +0200 @@ -78,10 +78,18 @@ public: double x, y, z; + vertex () {} + vertex (double fX, double fY, double fZ) { + x = fX; + y = fY; + z = fZ; + } + // ========================================================================= // Midpoint between this vertex and another vertex. vertex midpoint (vertex& other); str getStringRep (const bool bMangled); + void transform (double* matrix, vertex pos); }; // ============================================================================= @@ -124,6 +132,9 @@ LOG_Error, }; +// Vertex at (0, 0, 0) +extern const vertex g_Origin; + void logf (const char* fmt, ...) FORMAT_PRINTF (1, 2); void logf (logtype_e eType, const char* fmt, ...) FORMAT_PRINTF (2, 3);