GetNormalMatrix set this matrix to the matrix to transform the normal vectors from the src matrix to transform the vertices. If the src matrix cannot be inverted returns error.
(src *Matrix4)
| 280 | // from the src matrix to transform the vertices. |
| 281 | // If the src matrix cannot be inverted returns error. |
| 282 | func (m *Matrix3) GetNormalMatrix(src *Matrix4) error { |
| 283 | |
| 284 | m.SetFromMatrix4(src) |
| 285 | err := m.GetInverse(m) |
| 286 | m.Transpose() |
| 287 | return err |
| 288 | } |
| 289 | |
| 290 | // FromArray set this matrix array starting at offset. |
| 291 | // Returns pointer to this updated matrix. |
no test coverage detected