blooblib/rectangle.go

8 lines
89 B
Go

package bloob
type Rect[T Number] struct {
Pos, Size Vec2[T]
}
type Recti = Rect[int]