matrix

package
v0.0.0-...-ed1255c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix3

type Matrix3 [3][3]float64

Matrix3 is a 3 dimentional matrix

func New3

func New3() Matrix3

New3 returns a new 3x3 identity matrix

func (Matrix3) Determinant

func (m Matrix3) Determinant() float64

Determinant returns the determinant of the matrix

func (*Matrix3) Invert

func (m *Matrix3) Invert()

func (Matrix3) IsAffine

func (m Matrix3) IsAffine() bool

IsAffine checks whether the matrix represents an affine transformation

func (Matrix3) IsIdentity

func (m Matrix3) IsIdentity() bool

IsIdentity checks whether the matrix is an identity matrix: [1, 0, 0

0, 1, 0
0, 0, 1]

func (Matrix3) IsScale

func (m Matrix3) IsScale() bool

IsScale checks whether the matrix is a scaling matrix: [x, 0, x

0, x, x
0, 0, 1]

func (Matrix3) IsTranslate

func (m Matrix3) IsTranslate() bool

IsTranslate checks whether the matrix is a translate matrix [1, 0, x

0, 1, x
0, 0, 1]

Jump to

Keyboard shortcuts

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