SimpleVector

package module
v0.0.0-...-edc885f Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 1 Imported by: 0

README

SimpleVector

Provides simple interface for common vector operations.

It's mainly a helper library for my other projects. :)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SVector

type SVector struct {
	X, Y, Z float64
}

func (SVector) Add

func (sv SVector) Add(sv2 SVector) SVector

func (SVector) AddN

func (sv SVector) AddN(n float64) SVector

func (SVector) Angle

func (sv SVector) Angle(sv2 SVector) float64

func (SVector) Distance

func (sv SVector) Distance(sv2 SVector) float64

func (SVector) Divide

func (sv SVector) Divide(sv2 SVector) SVector

func (SVector) DivideN

func (sv SVector) DivideN(n float64) SVector

func (SVector) Dot

func (sv SVector) Dot(sv2 SVector) float64

func (SVector) Limit

func (sv SVector) Limit(n float64) SVector

func (SVector) Magnitude

func (sv SVector) Magnitude() float64

func (SVector) Multiply

func (sv SVector) Multiply(sv2 SVector) SVector

func (SVector) MultiplyN

func (sv SVector) MultiplyN(n float64) SVector

func (SVector) Normalize

func (sv SVector) Normalize() SVector

func (SVector) Subtract

func (sv SVector) Subtract(sv2 SVector) SVector

func (SVector) SubtractN

func (sv SVector) SubtractN(n float64) SVector

Jump to

Keyboard shortcuts

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