+ private static double downscaleSwt0(double x) {
+ return hasSwtScale ? x * fromSwtInternalScalingFactorD : x;
+ }
+
+ private static int downscaleToIntegerSwt0(double x) {
+ return (int)(hasSwtScale ? Math.round((double) x * fromSwtInternalScalingFactorD) : x);
+ }
+
+ private static int downscaleSwt0(int x) {
+ return hasSwtScale ? (int) Math.round((double) x * fromSwtInternalScalingFactorD) : x;
+ }
+
+ private static double upscaleSwt0(double x) {
+ return hasSwtScale ? x * toSwtInternalScalingFactorD : x;
+ }
+
+ private static int upscaleToIntegerSwt0(double x) {
+ return (int)(hasSwtScale ? Math.round((double) x * toSwtInternalScalingFactorD) : x);
+ }
+
+ private static int upscaleSwt0(int x) {
+ return hasSwtScale ? (int) Math.round((double) x * toSwtInternalScalingFactorD) : x;
+ }
+