v2d

package
v0.0.0-...-9989d13 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Length

func Length(v Vector) float64

Types

type Vector

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

func Abs

func Abs(v Vector) Vector

func FromXY

func FromXY(x, y float64) Vector

func Scale

func Scale(v Vector, factor float64) Vector

func Sum

func Sum(vs ...Vector) Vector

func UnitX

func UnitX() Vector

func UnitY

func UnitY() Vector

func Zero

func Zero() Vector

func (Vector) String

func (v Vector) String() string

func (Vector) X

func (v Vector) X() float64

func (Vector) XY

func (v Vector) XY() (float64, float64)

func (Vector) Y

func (v Vector) Y() float64

Jump to

Keyboard shortcuts

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