MCPcopy Index your code
hub / github.com/EngoEngine/engo / TranslationComponent

Method TranslationComponent

math.go:246–248  ·  view source on GitHub ↗

TranslationComponent returns the current translation component of m. This assumes uniform scaling.

()

Source from the content-addressed store, hash-verified

244// TranslationComponent returns the current translation component of m.
245// This assumes uniform scaling.
246func (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.

Callers 1

Calls

no outgoing calls

Tested by 1