mat3

package
v0.0.0-...-d35cbbc Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mat3 implements functions to work with 3x3 matrices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatrixVectorMul

func MatrixVectorMul(a *Mat3, v *vec3.Vec3Impl) *vec3.Vec3Impl

MatrixVectorMul returns the result of axv, where a is a matrix and v is a vector.

Types

type Mat3

type Mat3 struct {
	A11 float64
	A12 float64
	A13 float64
	A21 float64
	A22 float64
	A23 float64
	A31 float64
	A32 float64
	A33 float64
}

func NewTBN

func NewTBN(tangent, bitangent, normal *vec3.Vec3Impl) *Mat3

NewTBN returns a new matrix made from the supplied tagent, bitangent and normal vectors.

Jump to

Keyboard shortcuts

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