vector

package
v0.0.0-...-b6d9899 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vector2D

type Vector2D struct {
	X float64
	Y float64
}

func (*Vector2D) Add

func (v *Vector2D) Add(v2 Vector2D)

func (Vector2D) Distance

func (v Vector2D) Distance(v2 Vector2D) float64

func (*Vector2D) Divide

func (v *Vector2D) Divide(z float64)

func (*Vector2D) Limit

func (v *Vector2D) Limit(max float64)

func (*Vector2D) MagnitudeSquared

func (v *Vector2D) MagnitudeSquared() float64

func (*Vector2D) Multiply

func (v *Vector2D) Multiply(z float64)

func (*Vector2D) Normalize

func (v *Vector2D) Normalize()

func (*Vector2D) SetMagnitude

func (v *Vector2D) SetMagnitude(z float64)

func (*Vector2D) Subtract

func (v *Vector2D) Subtract(v2 Vector2D)

Jump to

Keyboard shortcuts

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