Skip to content

Commit

Permalink
fix minor style issues of #27
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Feb 26, 2014
1 parent 2163661 commit a73bc77
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions gl3n/linalg.d
Expand Up @@ -569,10 +569,11 @@ struct Vector(type, int dimension_) {

const int opCmp(ref const Vector vec) const {
foreach(i, a; vector) {
if(a < vec.vector[ i ])
if(a < vec.vector[i]) {
return -1;
else if(a > vec.vector[ i ])
} else if(a > vec.vector[i]) {
return 1;
}
}

// Vectors are the same
Expand Down Expand Up @@ -2419,10 +2420,11 @@ struct Quaternion(type) {

const int opCmp(ref const Quaternion qua) const {
foreach(i, a; quaternion) {
if(a < qua.quaternion[ i ])
if(a < qua.quaternion[i]) {
return -1;
else if(a > qua.quaternion[ i ])
return 1;
} else if(a > qua.quaternion[i]) {
return 1;
}
}

// Quaternions are the same
Expand Down

0 comments on commit a73bc77

Please sign in to comment.