Skip to content

Commit

Permalink
Relax precision test in example
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jul 29, 2024
1 parent eb57e62 commit 8683299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xy/line_centroid_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func ExampleLinearRingsCentroid() {
line1 := geom.NewLinearRingFlat(geom.XY, []float64{0, 0, 1, 1, 3, 3, 0, 0})
line2 := geom.NewLinearRingFlat(geom.XY, []float64{10, 10, 11, 11, 13, 13, 10, 10})
centroid := xy.LinearRingsCentroid(line1, line2)
fmt.Println(centroid)
fmt.Printf("[%.1f %.1f]\n", centroid.X(), centroid.Y())
// Output: [6.5 6.5]
}

Expand Down

0 comments on commit 8683299

Please sign in to comment.