vector

package
v0.0.0-...-d9d02c0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V2

type V2 struct {
	X, Y float64
}

func (V2) Add

func (v1 V2) Add(v2 V2) V2

func (V2) Length

func (v V2) Length() float64

func (V2) Mul

func (v V2) Mul(d float64) V2

func (V2) Normalize

func (v V2) Normalize() V2

func (V2) String

func (v V2) String() string

func (V2) Sub

func (v1 V2) Sub(v2 V2) V2

type V3

type V3 struct {
	X, Y, Z float64
}

func (V3) Add

func (v1 V3) Add(v2 V3) V3

func (V3) Length

func (v V3) Length() float64

func (V3) Mul

func (v V3) Mul(d float64) V3

func (V3) Normalize

func (v V3) Normalize() V3

func (V3) String

func (v V3) String() string

func (V3) Sub

func (v1 V3) Sub(v2 V3) V3

Jump to

Keyboard shortcuts

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