math3D

package
Version: v0.0.0-...-ca597d0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {
	Data [][]float64
}

func NewMatrix

func NewMatrix(row []float64) *Matrix

func NewVector3

func NewVector3(x, y, z float64) *Matrix

func NewVector4

func NewVector4(x, y, z, w float64) *Matrix

func (*Matrix) Add

func (m1 *Matrix) Add(m2 *Matrix) *Matrix

func (*Matrix) AddRow

func (m *Matrix) AddRow(row []float64) *Matrix

func (*Matrix) At

func (m *Matrix) At(row, col int) float64

func (*Matrix) Copy

func (m *Matrix) Copy() *Matrix

func (*Matrix) Equals

func (m *Matrix) Equals(m2 *Matrix) bool

func (*Matrix) GetCol

func (m *Matrix) GetCol(j int) *Matrix

func (*Matrix) GetNbCols

func (m *Matrix) GetNbCols() int

func (*Matrix) GetNbRows

func (m *Matrix) GetNbRows() int

func (*Matrix) GetRow

func (m *Matrix) GetRow(i int) *Matrix

func (*Matrix) Normalize4

func (m *Matrix) Normalize4() *Matrix

func (*Matrix) Product

func (m1 *Matrix) Product(m2 *Matrix) *Matrix

func (*Matrix) ScalarMultiply

func (m *Matrix) ScalarMultiply(s float64) *Matrix

func (*Matrix) Transpose

func (m *Matrix) Transpose() *Matrix

func (*Matrix) VectorLength

func (m *Matrix) VectorLength() float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL