MCPcopy Create free account
hub / github.com/EngoEngine/engo / RotationComponentRad

Method RotationComponentRad

math.go:258–260  ·  view source on GitHub ↗

RotationComponentRad returns the current rotation component of m in radians. This assumes uniform scaling.

()

Source from the content-addressed store, hash-verified

256// RotationComponentRad returns the current rotation component of m in radians.
257// This assumes uniform scaling.
258func (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.
263func (m *Matrix) Rotate(deg float32) *Matrix {

Callers 1

RotationComponentMethod · 0.95

Calls 1

Atan2Function · 0.92

Tested by

no test coverage detected