SetPosition sets this transformation matrix position fields from the specified vector v. Returns pointer to this updated matrix.
(v *Vector3)
| 422 | // SetPosition sets this transformation matrix position fields from the specified vector v. |
| 423 | // Returns pointer to this updated matrix. |
| 424 | func (m *Matrix4) SetPosition(v *Vector3) *Matrix4 { |
| 425 | |
| 426 | m[12] = v.X |
| 427 | m[13] = v.Y |
| 428 | m[14] = v.Z |
| 429 | return m |
| 430 | } |
| 431 | |
| 432 | // GetInverse sets this matrix to the inverse of the src matrix. |
| 433 | // If the src matrix cannot be inverted returns error and |