Class: ProconBypassMan::AnalogStickTiltingPowerScaler

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/support/analog_stick_hypotenuse_tilting_power_scaler.rb

Defined Under Namespace

Classes: PowerChunk

Constant Summary collapse

DEFAULT_THRESHOLD =
500

Instance Method Summary collapse

Instance Method Details

#calculate(hypotenuses) ⇒ PowerChunk

Parameters:

  • hypotenuses (Array<Float>)

Returns:



28
29
30
# File 'lib/procon_bypass_man/support/analog_stick_hypotenuse_tilting_power_scaler.rb', line 28

def calculate(hypotenuses)
  PowerChunk.new(hypotenuses)
end