Skip to content

Commit 540d3c4

Browse files
committed
Init integer and float geometry type aliases
1 parent 0d87468 commit 540d3c4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

types/floats/types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package floats
2+
3+
import geom "github.com/gravitton/geometry"
4+
5+
type Circle = geom.Circle[float64]
6+
type Line = geom.Line[float64]
7+
type Point = geom.Point[float64]
8+
type Polygon = geom.Polygon[float64]
9+
type Rectangle = geom.Rectangle[float64]
10+
type Size = geom.Size[float64]
11+
type Vector = geom.Vector[float64]

types/ints/types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package ints
2+
3+
import geom "github.com/gravitton/geometry"
4+
5+
type Circle = geom.Circle[int]
6+
type Line = geom.Line[int]
7+
type Point = geom.Point[int]
8+
type Polygon = geom.Polygon[int]
9+
type Rectangle = geom.Rectangle[int]
10+
type Size = geom.Size[int]
11+
type Vector = geom.Vector[int]

0 commit comments

Comments
 (0)