vec2

package
v0.0.0-...-16f148f Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Len

func Len(a Vec2) float64

Types

type Vec2

type Vec2 struct {
	X, Y float64
}

func Add

func Add(a, b Vec2) Vec2

func Div

func Div(a, b Vec2) Vec2

func Mul

func Mul(a, b Vec2) Vec2

func Neg

func Neg(a Vec2) Vec2

func Scale

func Scale(a Vec2, b float64) Vec2

func ScaleTo

func ScaleTo(a Vec2, len float64) Vec2

func Sub

func Sub(a, b Vec2) Vec2

func (*Vec2) Add

func (a *Vec2) Add(b Vec2) *Vec2

func (*Vec2) Div

func (a *Vec2) Div(b Vec2) *Vec2

func (*Vec2) Mul

func (a *Vec2) Mul(b Vec2) *Vec2

func (*Vec2) Scale

func (a *Vec2) Scale(b float64) *Vec2

func (*Vec2) Sub

func (a *Vec2) Sub(b Vec2) *Vec2

Jump to

Keyboard shortcuts

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