MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / map

Method map

src/com/cloudream/ishow/util/MathUtils.java:184–187  ·  view source on GitHub ↗
(float minStart, float minStop, float maxStart, float maxStop, float value)

Source from the content-addressed store, hash-verified

182 }
183
184 public static float map(float minStart, float minStop, float maxStart, float maxStop, float value)
185 {
186 return maxStart + (maxStart - maxStop) * ((value - minStart) / (minStop - minStart));
187 }
188
189 public static int random(int howbig)
190 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected