TranslationComponent returns the current translation component of m. This assumes uniform scaling.
()
| 244 | // TranslationComponent returns the current translation component of m. |
| 245 | // This assumes uniform scaling. |
| 246 | func (m *Matrix) TranslationComponent() (x, y float32) { |
| 247 | return m.Val[m02], m.Val[m12] |
| 248 | } |
| 249 | |
| 250 | // RotationComponent returns the current rotation component of m in degrees. |
| 251 | // This assumes uniform scaling. |
no outgoing calls