Documentation ¶
Index ¶
- type FreeCamera
- func (c *FreeCamera) CameraCenter() *math32.Vector2
- func (c *FreeCamera) GetPos() *math32.Vector2
- func (c *FreeCamera) IsWorldRange(pos *math32.Vector2) bool
- func (c *FreeCamera) Move(x, y float64)
- func (c *FreeCamera) MoveTo(x, y float64)
- func (c *FreeCamera) Render(world, screen *ebiten.Image) error
- func (c *FreeCamera) Reset()
- func (c *FreeCamera) Rotate(theta float64)
- func (c *FreeCamera) ScreenToWorld(point *math32.Vector2) *math32.Vector2
- func (c *FreeCamera) SetViewPort(width, height float64)
- func (c *FreeCamera) String() string
- func (c *FreeCamera) WorldToScreen(point *math32.Vector2) *math32.Vector2
- func (c *FreeCamera) Zoom(m float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreeCamera ¶
type FreeCamera struct {
// contains filtered or unexported fields
}
func NewFreeCamera ¶
func NewFreeCamera(winW, winH float64, worldW, worldH float64) *FreeCamera
func (*FreeCamera) CameraCenter ¶
func (c *FreeCamera) CameraCenter() *math32.Vector2
func (*FreeCamera) GetPos ¶
func (c *FreeCamera) GetPos() *math32.Vector2
func (*FreeCamera) IsWorldRange ¶
func (c *FreeCamera) IsWorldRange(pos *math32.Vector2) bool
func (*FreeCamera) Move ¶
func (c *FreeCamera) Move(x, y float64)
func (*FreeCamera) MoveTo ¶
func (c *FreeCamera) MoveTo(x, y float64)
func (*FreeCamera) Render ¶
func (c *FreeCamera) Render(world, screen *ebiten.Image) error
func (*FreeCamera) Reset ¶
func (c *FreeCamera) Reset()
func (*FreeCamera) Rotate ¶
func (c *FreeCamera) Rotate(theta float64)
func (*FreeCamera) ScreenToWorld ¶
func (c *FreeCamera) ScreenToWorld(point *math32.Vector2) *math32.Vector2
func (*FreeCamera) SetViewPort ¶
func (c *FreeCamera) SetViewPort(width, height float64)
func (*FreeCamera) String ¶
func (c *FreeCamera) String() string
func (*FreeCamera) WorldToScreen ¶
func (c *FreeCamera) WorldToScreen(point *math32.Vector2) *math32.Vector2
func (*FreeCamera) Zoom ¶
func (c *FreeCamera) Zoom(m float64)
Click to show internal directories.
Click to hide internal directories.