matrix

package
v0.0.0-...-4142f2f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 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 Matrix

type Matrix [16]float32

func CreateRotationMatrix

func CreateRotationMatrix(x, y, z float32) Matrix

func CreateTranslationMatrix

func CreateTranslationMatrix(dx, dy, dz float32) Matrix

func MatrixIdentity

func MatrixIdentity() Matrix

func MatrixRotationX

func MatrixRotationX(angle float32) Matrix

func MatrixRotationY

func MatrixRotationY(angle float32) Matrix

func MatrixRotationZ

func MatrixRotationZ(angle float32) Matrix

func (Matrix) IsZero

func (m Matrix) IsZero() bool

func (Matrix) Multiply

func (m Matrix) Multiply(other Matrix) Matrix

func (Matrix) MultiplyVec

func (m Matrix) MultiplyVec(v Vector4) Vector4

func (Matrix) Rotate

func (m Matrix) Rotate(angle float32) Matrix

func (Matrix) Scale

func (m Matrix) Scale(sx, sy float32) Matrix

func (Matrix) Translate

func (m Matrix) Translate(dx, dy float32) Matrix

type Vector4

type Vector4 [4]float32

Jump to

Keyboard shortcuts

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