Program can model a line based on points consisting of (x, y) coordinates using the cartesian system and program can calculate its length. Also to check whether the line are equal or not
The project needs these dependencies:
- JDK 15.0.2
- JUnit 5
./gradlew build
./gradlew test
int x1 = 1;
int y1 = 2;
int x2 = 3;
int y2 = 4;
double length = line.length(x1, y1, x2, y2);