MCPcopy
hub / github.com/EngoEngine/engo / ScaleComponent

Method ScaleComponent

math.go:240–242  ·  view source on GitHub ↗

ScaleComponent returns the current scale component of m. This assumes uniform scaling.

()

Source from the content-addressed store, hash-verified

238// ScaleComponent returns the current scale component of m.
239// This assumes uniform scaling.
240func (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.

Callers 5

TestMatrixScaleComponentFunction · 0.80
PrepareCullingMethod · 0.80
SetCameraMethod · 0.80
PrepareCullingMethod · 0.80
SetCameraMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestMatrixScaleComponentFunction · 0.64