control

package
v0.0.0-...-1f426e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	// contains filtered or unexported fields
}

func NewCamera

func NewCamera(viewPort la.Rect, zoomMin, zoomMax float64) *Camera

func (*Camera) GetMatrix

func (c *Camera) GetMatrix() la.Mat3

func (*Camera) Move

func (c *Camera) Move(dx, dy float64)

func (*Camera) MoveX

func (c *Camera) MoveX(dx float64)

func (*Camera) MoveY

func (c *Camera) MoveY(dy float64)

func (*Camera) Reset

func (c *Camera) Reset()

func (*Camera) RotateDeg

func (c *Camera) RotateDeg(theta float64)

func (*Camera) RotateRad

func (c *Camera) RotateRad(theta float64)

func (*Camera) ScreenToWorld

func (c *Camera) ScreenToWorld(screenPos la.Vec2) (la.Vec2, bool)

func (*Camera) Zoom

func (c *Camera) Zoom(dt float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL