ScaleComponent returns the current scale component of m. This assumes uniform scaling.
()
| 238 | // ScaleComponent returns the current scale component of m. |
| 239 | // This assumes uniform scaling. |
| 240 | func (m *Matrix) ScaleComponent() (x, y float32) { |
| 241 | return m.Val[m00], m.Val[m11] |
| 242 | } |
| 243 | |
| 244 | // TranslationComponent returns the current translation component of m. |
| 245 | // This assumes uniform scaling. |
no outgoing calls