Files
inkwell/scene.camera.go
2026-07-30 12:16:39 +02:00

11 lines
268 B
Go

package inkwell
// Camera is a stub identity transform — no scrolling in this milestone.
type Camera struct {
Offset Point
}
func NewCamera() *Camera { return &Camera{} }
func (c *Camera) Apply(p Point) Point { return Point{p.X - c.Offset.X, p.Y - c.Offset.Y} }