RotationComponentRad returns the current rotation component of m in radians. This assumes uniform scaling.
()
| 256 | // RotationComponentRad returns the current rotation component of m in radians. |
| 257 | // This assumes uniform scaling. |
| 258 | func (m *Matrix) RotationComponentRad() float32 { |
| 259 | return math.Atan2(m.Val[m10], m.Val[m00]) |
| 260 | } |
| 261 | |
| 262 | // Rotate rorates m counter-clockwise by deg degrees. |
| 263 | func (m *Matrix) Rotate(deg float32) *Matrix { |
no test coverage detected