movement

package
v0.0.0-...-2a6a35c Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Movement

type Movement interface {
	Move(frame int, start utils.Point) (point utils.Point, rad float64)
}

func Get

func Get(s string, args ...float64) Movement

func NewLinear

func NewLinear(args ...float64) Movement

NewLinear (speedX, speedY, rad, speed)

func NewParabola

func NewParabola(args ...float64) Movement

NewParabola (speedX, speedY, g)

func NewStay

func NewStay(args ...float64) Movement

NewStay (rad)

Jump to

Keyboard shortcuts

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