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

Method Value

axis.go:12–21  ·  view source on GitHub ↗

Value returns the value of an Axis.

()

Source from the content-addressed store, hash-verified

10
11// Value returns the value of an Axis.
12func (a Axis) Value() float32 {
13 for _, pair := range a.Pairs {
14 v := pair.Value()
15 if v != AxisNeutral {
16 return v
17 }
18 }
19
20 return AxisNeutral
21}
22
23// An AxisPair is a set of Min/Max values which could possible be used by an Axis.
24type AxisPair interface {

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected