Skip to content

Commit

Permalink
gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
200sc committed Feb 7, 2018
1 parent 66a5feb commit 08d196e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions collision/rtree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func TestAdjustTreeNoPreviousSplit(t *testing.T) {
r10 := entry{bb: mustRect(floatgeom.Point3{1, 0}, [3]float64{1, 1, 1}).Location}
entries := []entry{r00, r01, r10}
n := node{rt.root, false, entries, 1}
rt.root.entries = []entry{entry{bb: floatgeom.Point3{0, 0}.ToRect(0), child: &n}}
rt.root.entries = []entry{{bb: floatgeom.Point3{0, 0}.ToRect(0), child: &n}}

rt.adjustTree(&n, nil)

Expand Down Expand Up @@ -753,9 +753,9 @@ func TestSortEntries(t *testing.T) {
mustRect(floatgeom.Point3{3, 3}, [3]float64{1, 1}),
}
entries := []entry{
entry{objs[2].Location, nil, objs[2]},
entry{objs[1].Location, nil, objs[1]},
entry{objs[0].Location, nil, objs[0]},
{objs[2].Location, nil, objs[2]},
{objs[1].Location, nil, objs[1]},
{objs[0].Location, nil, objs[0]},
}
sorted, dists := sortEntries(floatgeom.Point3{0, 0}, entries)
if sorted[0] != entries[2] || sorted[1] != entries[1] || sorted[2] != entries[0] {
Expand Down
2 changes: 1 addition & 1 deletion shape/outline.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func toOutline(shape Shape, dirInc int, sizes ...int) ([]intgeom.Point2, error)
x := sx
y := sy

outline := []intgeom.Point2{intgeom.Point2{x, y}}
outline := []intgeom.Point2{{x, y}}

direction := topright
for i := 1; i < dirInc; i++ {
Expand Down

0 comments on commit 08d196e

Please sign in to comment.