matrix

package
v0.0.0-...-7d0236b Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mat22

type Mat22 [4]float64

func (Mat22) Determinant

func (a Mat22) Determinant() float64

func (Mat22) Equal

func (a Mat22) Equal(b Mat22) bool

func (Mat22) Index

func (m Mat22) Index(r, c int) float64

func (Mat22) String

func (m Mat22) String() string

type Mat33

type Mat33 [9]float64

func (Mat33) Cofactor

func (m Mat33) Cofactor(rx, cx int) float64

func (Mat33) Determinant

func (a Mat33) Determinant() float64

func (Mat33) Equal

func (a Mat33) Equal(b Mat33) bool

func (Mat33) Index

func (m Mat33) Index(r, c int) float64

func (Mat33) Minor

func (m Mat33) Minor(rx, cx int) float64

func (Mat33) String

func (m Mat33) String() string

func (Mat33) Submatrix

func (m Mat33) Submatrix(rx, cx int) Mat22

type Mat44

type Mat44 [16]float64

func Identity44

func Identity44() Mat44

func RotationX

func RotationX(phi float64) Mat44

func RotationY

func RotationY(phi float64) Mat44

func RotationZ

func RotationZ(phi float64) Mat44

func Scaling

func Scaling(x, y, z float64) Mat44

func Shear

func Shear(xy, xz, yx, yz, zx, zy float64) Mat44

func Translation

func Translation(x, y, z float64) Mat44

func ViewTransform

func ViewTransform(from, to, up tuple.Tuple) Mat44

func (Mat44) Cofactor

func (m Mat44) Cofactor(rx, cx int) float64

func (Mat44) Determinant

func (a Mat44) Determinant() float64

func (Mat44) Equal

func (a Mat44) Equal(b Mat44) bool

func (Mat44) Index

func (m Mat44) Index(r, c int) float64

func (Mat44) Inverse

func (a Mat44) Inverse() Mat44

func (Mat44) IsInvertible

func (a Mat44) IsInvertible() bool

func (Mat44) Minor

func (m Mat44) Minor(rx, cx int) float64

func (Mat44) Mul

func (a Mat44) Mul(b Mat44) Mat44

func (Mat44) MulTuple

func (a Mat44) MulTuple(b tuple.Tuple) tuple.Tuple

func (Mat44) String

func (m Mat44) String() string

func (Mat44) Submatrix

func (m Mat44) Submatrix(rx, cx int) Mat33

func (Mat44) Transpose

func (a Mat44) Transpose() Mat44

Jump to

Keyboard shortcuts

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