Simple library to calculate length of a line for a cartesius coordinate
- Gradle 7.2
- Java (JDK 11)
- Junit 5
./gradlew test
./gradlew build
- Casually import this library to your project
- model a line with Line class. then use the length() function
//example to find the length between (1,1) and (4,5)
Line line = new Line(1, 1, 4, 5);
double length = line.calculateLength();