vec

package
v0.0.0-...-e1c79ef Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistL1

func DistL1(v, w V) int

Types

type M

type M struct {
	A11, A12, A13 int
	A21, A22, A23 int
	A31, A32, A33 int
}

func ID

func ID() M

func Mat

func Mat(a11, a12, a13, a21, a22, a23, a31, a32, a33 int) M

func (M) MulM

func (m M) MulM(n M) M

func (M) MulV

func (m M) MulV(v V) V

func (M) String

func (m M) String() string

type V

type V struct {
	X, Y, Z int
}

func Vec

func Vec(x, y, z int) V

func (V) Add

func (v V) Add(w V) V

func (V) Mul

func (v V) Mul(w V) int

func (V) String

func (v V) String() string

func (V) Sub

func (v V) Sub(w V) V

Jump to

Keyboard shortcuts

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