vector

package
v0.0.0-...-ac51c2f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2014 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 Vec2i

type Vec2i struct {
	X, Y int32
}

func (*Vec2i) Max

func (v *Vec2i) Max() (max int)

func (*Vec2i) Min

func (v *Vec2i) Min() (min int)

type Vec3f

type Vec3f struct {
	X, Y, Z float32
}

type Vec3i

type Vec3i struct {
	X, Y, Z int32
}

type Vec3ui8

type Vec3ui8 struct {
	X, Y, Z uint8
}

type Vec4f

type Vec4f struct {
	X, Y, Z, W float32
}

func (*Vec4f) Add

func (a *Vec4f) Add(b *Vec4f) (c Vec4f)

func (*Vec4f) Cross

func (a *Vec4f) Cross(b Vec4f) (c Vec4f)

func (*Vec4f) Dot

func (a *Vec4f) Dot(b Vec4f) (dot float32)

func (*Vec4f) Normalize

func (vec *Vec4f) Normalize()

func (*Vec4f) Scale

func (a *Vec4f) Scale(b float32) (c Vec4f)

func (*Vec4f) Subtract

func (a *Vec4f) Subtract(b *Vec4f) (c Vec4f)

type Vec4i

type Vec4i struct {
	X, Y, Z, W int32
}

type Vec4ui

type Vec4ui struct {
	X, Y, Z, W uint32
}

type Vec4ui8

type Vec4ui8 struct {
	X, Y, Z, W uint8
}

Jump to

Keyboard shortcuts

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