With removal of vectors, I don't need to keep the bearing class around either

Wed, 20 Mar 2013 03:25:49 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Wed, 20 Mar 2013 03:25:49 +0200
changeset 44
4c2fdadb9262
parent 43
85b24285a8c7
child 45
19d99d62d88e

With removal of vectors, I don't need to keep the bearing class around either

common.h file | annotate | diff | comparison | revisions
misc.cpp file | annotate | diff | comparison | revisions
--- 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" : "")
 
--- 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)

mercurial