Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a775aec3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MathUtils.map fix"

parents 5ad724d3 09c4bf8d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@

package android.util;

import java.util.Random;

/**
 * A class that contains utility methods related to numbers.
 *
@@ -181,7 +179,7 @@ public final class MathUtils {
    }

    public static float map(float minStart, float minStop, float maxStart, float maxStop, float value) {
        return maxStart + (maxStart - maxStop) * ((value - minStart) / (minStop - minStart));
        return maxStart + (maxStop - maxStart) * ((value - minStart) / (minStop - minStart));
    }

    /**