game_math

package
v0.0.0-...-54eea7a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const CellSize = 30
View Source
const DiscreteSize = 6 * CellSize

Variables

This section is empty.

Functions

func GetBetweenAngle

func GetBetweenAngle(x, y, targetX, targetY float64) int

func GetBetweenDist

func GetBetweenDist(fromX, fromY, toX, toY int) float64

func GetBetweenDistLinePoint

func GetBetweenDistLinePoint(xPoint, yPoint, x1Line, y1Line, x2Line, y2Line int) int

func RotatePoint

func RotatePoint(x, y, x0, y0 float64, rotate int) (newX, newY float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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