camera.go 379 B

1234567891011121314151617181920212223242526272829
  1. package physics
  2. import "gitlab.com/beoran/ebsgo/engine/geometry"
  3. type Camera struct {
  4. geometry.Rectangle
  5. }
  6. /*
  7. func (cam * Camera) X() float64 {
  8. return cam.Rectangle.X
  9. }
  10. func (cam * Camera) Y() float64 {
  11. return cam.Rectangle.X
  12. }
  13. func (cam * Camera) W() float64 {
  14. return cam.Rectangle.W
  15. }
  16. func (cam * Camera) H() float64 {
  17. return cam.Rectangle.H
  18. }
  19. */