MCPcopy
hub / github.com/g3n/engine / NewMatrix4

Function NewMatrix4

math32/matrix4.go:14–19  ·  view source on GitHub ↗

NewMatrix4 creates and returns a pointer to a new Matrix4 initialized as the identity matrix.

()

Source from the content-addressed store, hash-verified

12// NewMatrix4 creates and returns a pointer to a new Matrix4
13// initialized as the identity matrix.
14func NewMatrix4() *Matrix4 {
15
16 var mat Matrix4
17 mat.Identity()
18 return &mat
19}
20
21// Set sets all the elements of this matrix row by row starting at row1, column1,
22// row1, column2, row1, column3 and so forth.

Callers 4

AddBoneMethod · 0.92
NewTubeFunction · 0.92
BoundingBoxMethod · 0.92
SetFromQuaternionMethod · 0.85

Calls 1

IdentityMethod · 0.95

Tested by

no test coverage detected