# HG changeset patch # User Santeri Piippo # Date 1363742749 -7200 # Node ID 4c2fdadb92628068afad66634e532556530eaf22 # Parent 85b24285a8c7052771503267504f7f74a2aa6c74 With removal of vectors, I don't need to keep the bearing class around either diff -r 85b24285a8c7 -r 4c2fdadb9262 common.h --- a/common.h Wed Mar 20 03:22:21 2013 +0200 +++ b/common.h Wed Mar 20 03:25:49 2013 +0200 @@ -85,20 +85,6 @@ }; // ============================================================================= -// bearing -// -// A bearing is a combination of an angle and a pitch. Essentially a 3D angle. -// The project method projects a vertex from a given vertex by a given length. -// -// Prefix: g, since b is bool -// ============================================================================= -class bearing { - double fAngle, fPitch; - - vertex project (vertex& vSource, ulong ulLength); -}; - -// ============================================================================= // Plural expression #define PLURAL(n) ((n != 1) ? "s" : "") diff -r 85b24285a8c7 -r 4c2fdadb9262 misc.cpp --- a/misc.cpp Wed Mar 20 03:22:21 2013 +0200 +++ b/misc.cpp Wed Mar 20 03:25:49 2013 +0200 @@ -54,19 +54,6 @@ // ============================================================================= // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ============================================================================= -vertex bearing::project (vertex& vSource, ulong ulLength) { - vertex vDest = vSource; - - vDest.x += (cos (fAngle) * ulLength); - vDest.y += (sin (fAngle) * ulLength); - vDest.x += (cos (fPitch) * ulLength); - vDest.z += (sin (fPitch) * ulLength); - return vDest; -} - -// ============================================================================= -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -// ============================================================================= str ftoa (double fCoord) { // Disable the locale first so that the decimal point will not // turn into anything weird (like commas)