FromArray set this matrix elements from the array starting at offset. Returns pointer to this updated matrix.
(array []float32, offset int)
| 733 | // FromArray set this matrix elements from the array starting at offset. |
| 734 | // Returns pointer to this updated matrix. |
| 735 | func (m *Matrix4) FromArray(array []float32, offset int) *Matrix4 { |
| 736 | |
| 737 | copy(m[:], array[offset:offset+16]) |
| 738 | return m |
| 739 | } |
| 740 | |
| 741 | // ToArray copies this matrix elements to array starting at offset. |
| 742 | // Returns pointer to the updated array. |