Skip to content

Commit

Permalink
Merge pull request #3 from trajectoryjp/hotfix/updateDistance
Browse files Browse the repository at this point in the history
Fixed calling updateDistance()
  • Loading branch information
HarutakaMatsumoto authored Nov 28, 2024
2 parents c574516 + 6acc591 commit c4f9957
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions Measure.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ findOuterMinDistanceFace:
measure.simplex = newSimplex
measure.updateSimplex()
measure.updateDirection()
measure.updateDistance()
measure.updateTheOthers()

measure.Distance *= -1.0
Expand Down
8 changes: 0 additions & 8 deletions Measure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ func TestMeasureNonnegativeDistance_MinError(t *testing.T) {
}

func TestMeasureDistance(t *testing.T) {
if testing.Short() {
t.Skip("TODO: Make this test succeed.")
}

convexHull0 := []*mgl64.Vec3{
{0.0, 5.5, 0.0},
{2.3, 1.0, -2.0},
Expand Down Expand Up @@ -229,10 +225,6 @@ func TestMeasureDistance(t *testing.T) {
}

func TestMeasureDistance_Geodetic(t *testing.T) {
if testing.Short() {
t.Skip("TODO: Make this test succeed.")
}

convexHull0 := []*mgl64.Vec3{
{136.243592, 36.294155, 0},
{136.243591519521, 36.3058526069559, 0.132705141790211},
Expand Down

0 comments on commit c4f9957

Please sign in to comment.