vec

package
v0.0.0-...-3626a0a Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	X vec3Dir = iota
	Y
	Z
)

Variables

This section is empty.

Functions

func Normalize

func Normalize(v mgl64.Vec3, dir vec3Dir, sign float64) mgl64.Vec3

Normalize returns a new Vec3 with length 1 in the same direction as v. If v has length 0 then the direction of the returned vector is determined by dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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