Minor tidy ups
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
diff --git a/include/FTVectoriser.h b/include/FTVectoriser.h
index e18f4d2..fb2d8b6 100644
--- a/include/FTVectoriser.h
+++ b/include/FTVectoriser.h
@@ -22,12 +22,12 @@ class ftPoint
: x(X), y(Y), z(Z)
{}
- friend bool operator == (const ftPoint &a, const ftPoint &b)
+ friend bool operator == ( const ftPoint &a, const ftPoint &b)
{
return((a.x == b.x) && (a.y == b.y) && (a.z == b.z));
}
- friend bool operator != (const ftPoint &a, const ftPoint &b)
+ friend bool operator != ( const ftPoint &a, const ftPoint &b)
{
return((a.x != b.x) || (a.y != b.y) || (a.z != b.z));
}
diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
index 67c5bf1..cb08e57 100644
--- a/src/FTVectoriser.cpp
+++ b/src/FTVectoriser.cpp
@@ -173,7 +173,7 @@ int FTVectoriser::Cubic( const int index, const int first, const int last)
}
-// De Casteljau algorithm supplied by Jed Soane
+// De Casteljau algorithm contributed by Jed Soane
void FTVectoriser::deCasteljau( const float t, const int n)
{
//Calculating successive b(i)'s using de Casteljau algorithm.
@@ -189,7 +189,7 @@ void FTVectoriser::deCasteljau( const float t, const int n)
}
-// De Casteljau algorithm supplied by Jed Soane
+// De Casteljau algorithm contributed by Jed Soane
void FTVectoriser::evaluateCurve( const int n)
{
// setting the b(0) equal to the control points
@@ -197,15 +197,15 @@ void FTVectoriser::evaluateCurve( const int n)
{
bValues[0][i][0] = ctrlPtArray[i][0];
bValues[0][i][1] = ctrlPtArray[i][1];
- } //end for(i..)
+ }
float t; //parameter for curve point calc. [0.0, 1.0]
- for( int m = 0; m <= (1 / kBSTEPSIZE); m++)
+ for( int m = 0; m <= ( 1 / kBSTEPSIZE); m++)
{
t = m * kBSTEPSIZE;
deCasteljau( t, n); //calls to evaluate point on curve att.
- } //end for(m...)
+ }
}