Skip to content

Commit

Permalink
Add parallel check
Browse files Browse the repository at this point in the history
  • Loading branch information
wahfl2 committed Sep 20, 2024
1 parent 9a06574 commit d692c8f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ private static void processSolution() {
* using the stating locations and line direction solve for where the location must be
*/
protected static Vec3d solve(Vec3d startPosOne, Vec3d startPosTwo, Vec3d directionOne, Vec3d directionTwo) {
if (directionOne.equals(directionTwo)) return null;

//convert format to get lines for the intersection solving
Vector3D lineOneStart = new Vector3D(startPosOne.x, startPosOne.y, startPosOne.z);
Vector3D lineOneEnd = new Vector3D(directionOne.x, directionOne.y, directionOne.z).add(lineOneStart);
Expand Down

0 comments on commit d692c8f

Please sign in to comment.