This commit is contained in:
Eisuke Kawashima
2020-03-14 12:38:28 +09:00
parent fa7085be07
commit 649a8cc01a
401 changed files with 617 additions and 617 deletions

View File

@ -879,7 +879,7 @@ double c::closest_approach(const cPt &l1_1, const cPt &l1_2, const cPt &l2_1,
double tc, tN, tD = D;
// compute the closest points between the two lines
if (D < 0.00000000001) { // parrallel lines
if (D < 0.00000000001) { // parallel lines
sN = 0.0; sD = 1.0; tN = e; tD = c;
} else { // get the closest points on the infinite lines
sN = (b*e - c*d);
@ -936,7 +936,7 @@ void c::closest_approach_points(const cPt &l1_1, const cPt &l1_2,
double tc, tN, tD = D;
// compute the closest points between the two lines
if (D < 0.00000000001) { // parrallel lines
if (D < 0.00000000001) { // parallel lines
sN = 0.0; sD = 1.0; tN = e; tD = c;
} else { // get the closest points on the infinite lines
sN = (b*e - c*d);