Skip to content

Commit

Permalink
Fixing few lines for actual compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianHawkmoon committed Dec 10, 2016
1 parent 648a5f9 commit 3cf29fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DelaunayTriangulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ int CircumCircle(double xp, double yp, double x1, double y1, double x2,
double dx, dy, rsqr, drsqr;

/* Check for coincident points */
if (abs(y1 - y2) < EPSILON && abs(y2 - y3) < EPSILON)
if (std::abs(y1 - y2) < EPSILON && std::abs(y2 - y3) < EPSILON)
return (false);
if (abs(y2 - y1) < EPSILON) {
if (std::abs(y2 - y1) < EPSILON) {
m2 = -(x3 - x2) / (y3 - y2);
mx2 = (x2 + x3) / 2.0;
my2 = (y2 + y3) / 2.0;
xc = (x2 + x1) / 2.0;
yc = m2 * (xc - mx2) + my2;
} else if (abs(y3 - y2) < EPSILON) {
} else if (std::abs(y3 - y2) < EPSILON) {
m1 = -(x2 - x1) / (y2 - y1);
mx1 = (x1 + x2) / 2.0;
my1 = (y1 + y2) / 2.0;
Expand Down
1 change: 1 addition & 0 deletions src/Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <string.h>
#include <cmath>
#include <cassert>
#include <random>

void centerOrigin(sf::Sprite& sprite);
void centerOrigin(sf::Text& text);
Expand Down
1 change: 1 addition & 0 deletions src/Velocity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "Velocity.h"
#include "Position.h"
#include <cmath>

#include <iostream>

Expand Down

0 comments on commit 3cf29fc

Please sign in to comment.