matrix

package
v0.0.0-...-16f148f Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(m Matrix, p vec2.Vec2) vec2.Vec2

func Determinant

func Determinant(m Matrix) float64

Types

type Matrix

type Matrix [6]float64

3x3 matrix with an implicit 0,0,1 row at the bottom [ #0 #2 #4 ] [ #1 #3 #5 ] [ 0 0 1 ]

func Identity

func Identity() Matrix

func Invert

func Invert(m Matrix) Matrix

func Multiply

func Multiply(a, b Matrix) Matrix

func Rotate

func Rotate(a float64) Matrix

func Scale

func Scale(s float64) Matrix

func Translate

func Translate(t vec2.Vec2) Matrix

func (*Matrix) Scale

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

func (*Matrix) Translate

func (m *Matrix) Translate(t vec2.Vec2) *Matrix

Jump to

Keyboard shortcuts

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