Created
January 3, 2019 20:05
-
-
Save andrebrait/0dee78c54244cda55682816653a730de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static double distance(double x1, double y1, double x2, double y2) { | |
double dx = x2 - x1; | |
double dy = y2 - y1; | |
return Math.sqrt((dx * dx) + (dy * dy)); | |
} | |
static double constant(double x1, double y1, double x2, double y2) { | |
return 0.0d; | |
} | |
static void nothing() { | |
// this really does nothing | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment