some refinement and beginning of a table element

This commit is contained in:
2025-09-05 22:18:36 -04:00
parent 4e6d720a91
commit 99675e874b
18 changed files with 393 additions and 119 deletions

19
common/geo/point.go Normal file
View File

@@ -0,0 +1,19 @@
package geo
type Point struct {
X, Y int
}
func (p Point) Delta(p2 Point) Point {
return Point{
X: p2.X - p.X,
Y: p2.Y - p.Y,
}
}
func (p Point) Add(p2 Point) Point {
return Point{
X: p.X + p2.X,
Y: p.Y + p2.Y,
}
}