private float MapToRange(float value) { if (IsNegativeToPositive) { return(0.5f + (value / 2f)); } else { return(RelativeInputEvent.WithinPositiveRange(value)); } }
public override Vector3 GetPointFromRelativeInput(float relativeInput) { float internalRelative; if (_FullRange) { internalRelative = RelativeInputEvent.WithinFullRange(relativeInput); } else { internalRelative = RelativeInputEvent.WithinPositiveRange(relativeInput); } return(DeterminePointInSpaceFromRelativeInput(internalRelative)); }