g

package
v0.0.0-...-f88717f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(p, min, max float64) float64

Types

type V2

type V2 struct {
	X, Y float64
}

func V2FromInt

func V2FromInt(x, y int) V2

func V2FromPoint

func V2FromPoint(p image.Point) V2

func (V2) Add

func (a V2) Add(b V2) V2

func (V2) Mul

func (a V2) Mul(s V2) V2

func (V2) Point

func (a V2) Point() image.Point

func (V2) Scale

func (a V2) Scale(s float64) V2

func (V2) Sub

func (a V2) Sub(b V2) V2

func (V2) XY

func (a V2) XY() (x, y float64)

Jump to

Keyboard shortcuts

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