Files
pncdsl/scene.camera.go
2026-05-25 21:28:17 +02:00

11 lines
267 B
Go

package pncdsl
// 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} }