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

10
common/geo/bounds.go Normal file
View File

@@ -0,0 +1,10 @@
package geo
type Bounds struct {
Min Point
Width, Height int
}
func (b *Bounds) Contains(p Point) bool {
return p.X >= b.Min.X && p.X <= b.Min.X+b.Width && p.Y >= b.Min.Y && p.Y <= b.Min.Y+b.Height
}