vecmath

package
v0.0.0-...-da3de13 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vec3d

type Vec3d struct {
	X, Y, Z float32
}

func MakeDirectionVector

func MakeDirectionVector(from, to *Vec3d) Vec3d

func MakeReflect

func MakeReflect(vec, normal *Vec3d) Vec3d

func MakeVec3d

func MakeVec3d(value float32) Vec3d

func ToVec3d

func ToVec3d(vec *Vec3dA) Vec3d

func (Vec3d) Added

func (self Vec3d) Added(other Vec3d) Vec3d

func (Vec3d) Cross

func (self Vec3d) Cross(other Vec3d) Vec3d

func (Vec3d) DistanceTo

func (self Vec3d) DistanceTo(other *Vec3d) float32

func (Vec3d) Dot

func (self Vec3d) Dot(other Vec3d) float32

func (*Vec3d) Length

func (self *Vec3d) Length() float32

func (Vec3d) Normalized

func (self Vec3d) Normalized() Vec3d

func (Vec3d) Scaled

func (self Vec3d) Scaled(scalar float32) Vec3d

func (Vec3d) Subtracted

func (self Vec3d) Subtracted(other Vec3d) Vec3d

type Vec3dA

type Vec3dA struct {
	V [3]float32
}

func ToVec3dA

func ToVec3dA(vec *Vec3d) Vec3dA

Jump to

Keyboard shortcuts

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