Skip to content

Commit 8a49a62

Browse files
committed
Update type aliases
1 parent 73e3918 commit 8a49a62

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

types/floats/types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package floats
22

33
import geom "github.com/gravitton/geometry"
44

5+
type Point = geom.Point[float64]
6+
type Vector = geom.Vector[float64]
7+
type Size = geom.Size[float64]
58
type Circle = geom.Circle[float64]
69
type Line = geom.Line[float64]
7-
type Point = geom.Point[float64]
8-
type Polygon = geom.Polygon[float64]
910
type Rectangle = geom.Rectangle[float64]
10-
type Size = geom.Size[float64]
11-
type Vector = geom.Vector[float64]
11+
type Polygon = geom.Polygon[float64]
12+
type RegularPolygon = geom.RegularPolygon[float64]

types/ints/types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package ints
22

33
import geom "github.com/gravitton/geometry"
44

5+
type Point = geom.Point[int]
6+
type Vector = geom.Vector[int]
7+
type Size = geom.Size[int]
58
type Circle = geom.Circle[int]
69
type Line = geom.Line[int]
7-
type Point = geom.Point[int]
8-
type Polygon = geom.Polygon[int]
910
type Rectangle = geom.Rectangle[int]
10-
type Size = geom.Size[int]
11-
type Vector = geom.Vector[int]
11+
type Polygon = geom.Polygon[int]
12+
type RegularPolygon = geom.RegularPolygon[int]

0 commit comments

Comments
 (0)