MCPcopy
hub / github.com/EngoEngine/engo / Identity

Method Identity

math.go:178–189  ·  view source on GitHub ↗

Identity sets the matrix to the Identity matrix and returns the matrix.

()

Source from the content-addressed store, hash-verified

176
177// Identity sets the matrix to the Identity matrix and returns the matrix.
178func (m *Matrix) Identity() *Matrix {
179 m.Val[m00] = 1
180 m.Val[m10] = 0
181 m.Val[m20] = 0
182 m.Val[m01] = 0
183 m.Val[m11] = 1
184 m.Val[m21] = 0
185 m.Val[m02] = 0
186 m.Val[m12] = 0
187 m.Val[m22] = 1
188 return m
189}
190
191// Multiply postmultiplies m matrix with m2 and stores the result in m, returning m.
192// Multiplaction is the result of m2 times m.

Callers 7

IdentityMatrixFunction · 0.80
PrepareCullingMethod · 0.80
makeModelMatrixMethod · 0.80
SetCameraMethod · 0.80
PrepareCullingMethod · 0.80
makeModelMatrixMethod · 0.80
SetCameraMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected