vec

package
v0.0.0-...-8b49de5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(a, b Vector3) float32

func DistanceSquared

func DistanceSquared(a, b Vector3) float32

Types

type Vector3

type Vector3 struct {
	X, Y, Z float32
}

func Add

func Add(a, b Vector3) Vector3

func Mult

func Mult(a Vector3, b float32) Vector3

func Normalize

func Normalize(a Vector3) Vector3

func (Vector3) Length

func (a Vector3) Length() float32

Jump to

Keyboard shortcuts

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