A little refactoring
This commit is contained in:
parent
a2d7a5f7c8
commit
0ffbb1c8f2
2 changed files with 75 additions and 69 deletions
|
@ -161,6 +161,14 @@ public class MHelper {
|
|||
return i * i;
|
||||
}
|
||||
|
||||
public static float pow2(float f) {
|
||||
return f * f;
|
||||
}
|
||||
|
||||
public static double pow2(double d) {
|
||||
return d * d;
|
||||
}
|
||||
|
||||
public static int fromHSBtoRGB(float hue, float saturation, float brightness) {
|
||||
int red = 0;
|
||||
int green = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue