/external/libgdx/tests/gdx-tests-android/assets/data/issue/ |
D | funky_palm_tree.g3dj.txt | 946 "scale": [ 0.052866, 0.052866, 0.052866], 957 "scale": [ 18.915624, 18.915621, 18.915623, 0.000000] 963 "scale": [ 18.915625, 18.915621, 18.915625, 0.000000] 969 "scale": [ 18.915626, 18.915629, 18.915626, 0.000000] 982 "scale": [ 18.915623, 18.915629, 18.915626, 0.000000] 988 "scale": [ 18.915626, 18.915629, 18.915627, 0.000000] 994 "scale": [ 18.915625, 18.915632, 18.915630, 0.000000] 1000 "scale": [ 18.915622, 18.915630, 18.915625, 0.000000] 1006 "scale": [ 18.915622, 18.915628, 18.915625, 0.000000] 1012 "scale": [ 18.915631, 18.915630, 18.915627, 0.000000] [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/ |
D | TimeScaleAPITest.java | 43 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromBigDecimal() 45 UniversalTimeScale.bigDecimalFrom(bigZero, scale); in TestBigDecimalFromBigDecimal() 47 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromBigDecimal() 68 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromDouble() 70 UniversalTimeScale.bigDecimalFrom(0.0, scale); in TestBigDecimalFromDouble() 72 errln("bigDecimalFrom(0.0, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromDouble() 93 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromLong() 95 UniversalTimeScale.bigDecimalFrom(0L, scale); in TestBigDecimalFromLong() 97 errln("bigDecimalFrom(0L, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromLong() 120 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestFromLong() [all …]
|
D | TimeScaleDataTest.java | 40 private void roundTripTest(long value, int scale) in roundTripTest() argument 42 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest() 45 … errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt); in roundTripTest() 49 private void toLimitTest(long toLimit, long fromLimit, int scale) in toLimitTest() argument 51 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest() 54 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit + in toLimitTest() 59 private void epochOffsetTest(long epochOffset, long units, int scale) in epochOffsetTest() argument 62 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest() 65 … errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + in epochOffsetTest() 69 local = UniversalTimeScale.toLong(0, scale); in epochOffsetTest() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
D | TimeScaleAPITest.java | 39 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromBigDecimal() 41 UniversalTimeScale.bigDecimalFrom(bigZero, scale); in TestBigDecimalFromBigDecimal() 43 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromBigDecimal() 64 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromDouble() 66 UniversalTimeScale.bigDecimalFrom(0.0, scale); in TestBigDecimalFromDouble() 68 errln("bigDecimalFrom(0.0, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromDouble() 89 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromLong() 91 UniversalTimeScale.bigDecimalFrom(0L, scale); in TestBigDecimalFromLong() 93 errln("bigDecimalFrom(0L, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromLong() 116 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestFromLong() [all …]
|
D | TimeScaleDataTest.java | 36 private void roundTripTest(long value, int scale) in roundTripTest() argument 38 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest() 41 … errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt); in roundTripTest() 45 private void toLimitTest(long toLimit, long fromLimit, int scale) in toLimitTest() argument 47 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest() 50 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit + in toLimitTest() 55 private void epochOffsetTest(long epochOffset, long units, int scale) in epochOffsetTest() argument 58 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest() 61 … errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + in epochOffsetTest() 65 local = UniversalTimeScale.toLong(0, scale); in epochOffsetTest() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | utmstest.c | 99 static void roundTripTest(int64_t value, UDateTimeScale scale) in roundTripTest() argument 102 int64_t rt = utmscale_toInt64(utmscale_fromInt64(value, scale, &status), scale, &status); in roundTripTest() 105 …log_err("Round-trip error: time scale = %d, value = %lld, round-trip = %lld.\n", scale, value, rt); in roundTripTest() 109 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) in toLimitTest() argument 112 int64_t result = utmscale_toInt64(toLimit, scale, &status); in toLimitTest() 116 scale, toLimit, result, fromLimit); in toLimitTest() 120 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) in epochOffsetTest() argument 125 int64_t local = utmscale_toInt64(universalEpoch, scale, &status); in epochOffsetTest() 128 …ffset, scale, &status): scale = %d epochOffset = %lld, result = %lld.\n", scale, epochOffset, loca… in epochOffsetTest() 131 local = utmscale_toInt64(0, scale, &status); in epochOffsetTest() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | SimpleBigDecimal.java | 23 private final int scale; field in SimpleBigDecimal 34 public static SimpleBigDecimal getInstance(BigInteger value, int scale) in getInstance() argument 36 return new SimpleBigDecimal(value.shiftLeft(scale), scale); in getInstance() 46 public SimpleBigDecimal(BigInteger bigInt, int scale) in SimpleBigDecimal() argument 48 if (scale < 0) in SimpleBigDecimal() 54 this.scale = scale; in SimpleBigDecimal() 59 if (scale != b.scale) in checkScale() 73 if (newScale == scale) in adjustScale() 78 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale() 85 return new SimpleBigDecimal(bigInt.add(b.bigInt), scale); in add() [all …]
|
/external/opencv3/modules/stitching/include/opencv2/stitching/ |
D | warpers.hpp | 59 virtual Ptr<detail::RotationWarper> create(float scale) const = 0; 68 …Ptr<detail::RotationWarper> create(float scale) const { return makePtr<detail::PlaneWarper>(scale)… in create() 77 …Ptr<detail::RotationWarper> create(float scale) const { return makePtr<detail::CylindricalWarper>(… in create() 84 …Ptr<detail::RotationWarper> create(float scale) const { return makePtr<detail::SphericalWarper>(sc… in create() 90 …Ptr<detail::RotationWarper> create(float scale) const { return makePtr<detail::FisheyeWarper>(scal… in create() 96 …Ptr<detail::RotationWarper> create(float scale) const { return makePtr<detail::StereographicWarper… in create() 107 …tr<detail::RotationWarper> create(float scale) const { return makePtr<detail::CompressedRectilinea… in create() 118 …etail::RotationWarper> create(float scale) const { return makePtr<detail::CompressedRectilinearPor… in create() 129 …Ptr<detail::RotationWarper> create(float scale) const { return makePtr<detail::PaniniWarper>(scale… in create() 140 …Ptr<detail::RotationWarper> create(float scale) const { return makePtr<detail::PaniniPortraitWarpe… in create() [all …]
|
/external/skia/src/core/ |
D | SkBitmapProcState_filter.h | 31 int scale = 256 - 16*y - 16*x + xy; in Filter_32_opaque() local 32 uint32_t lo = (a00 & mask) * scale; in Filter_32_opaque() 33 uint32_t hi = ((a00 >> 8) & mask) * scale; in Filter_32_opaque() 35 scale = 16*x - xy; in Filter_32_opaque() 36 lo += (a01 & mask) * scale; in Filter_32_opaque() 37 hi += ((a01 >> 8) & mask) * scale; in Filter_32_opaque() 39 scale = 16*y - xy; in Filter_32_opaque() 40 lo += (a10 & mask) * scale; in Filter_32_opaque() 41 hi += ((a10 >> 8) & mask) * scale; in Filter_32_opaque() 61 int scale = 256 - 16*y - 16*x + xy; in Filter_32_alpha() local [all …]
|
D | SkUnPreMultiply.cpp | 13 const Scale scale = GetScale(a); in PMColorToColor() local 15 ApplyScale(scale, SkGetPackedR32(c)), in PMColorToColor() 16 ApplyScale(scale, SkGetPackedG32(c)), in PMColorToColor() 17 ApplyScale(scale, SkGetPackedB32(c))); in PMColorToColor() 22 const Scale scale = GetScale(a); in UnPreMultiplyPreservingByteOrder() local 24 ApplyScale(scale, SkGetPackedR32(c)), in UnPreMultiplyPreservingByteOrder() 25 ApplyScale(scale, SkGetPackedG32(c)), in UnPreMultiplyPreservingByteOrder() 26 ApplyScale(scale, SkGetPackedB32(c))); in UnPreMultiplyPreservingByteOrder() 67 uint32_t scale; in SkUnPreMultiply_BuildTable() local 70 scale = 0; in SkUnPreMultiply_BuildTable() [all …]
|
/external/aac/libFDK/include/ |
D | scale.h | 204 …#define SATURATE_RIGHT_SHIFT(src, scale, dBits) … argument 205 …( (((LONG)(src)>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) ? (LONG)(((1U)<<((dBits)-1))-1) … 206 … : (((LONG)(src)>>(scale)) < ~((LONG)(((1U)<<((dBits)-1))-1))) ? ~((LONG)(((1U)<<((dBits)-1))-1)) \ 207 : ((LONG)(src) >> (scale)) ) 211 …#define SATURATE_LEFT_SHIFT(src, scale, dBits) … argument 212 …( ((LONG)(src) > ((LONG)(((1U)<<((dBits)-1))-1)>>(scale))) ? (LONG)(((1U)<<((dBits)-1))-1) … 213 … : ((LONG)(src) < ~((LONG)(((1U)<<((dBits)-1))-1)>>(scale))) ? ~((LONG)(((1U)<<((dBits)-1))-1)) \ 214 : ((LONG)(src) << (scale)) ) 218 #define SATURATE_SHIFT(src, scale, dBits) \ argument 219 ( ((scale) < 0) \ [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
D | smooth.c | 34 int16_t maxtot, scale, scale1, scale2; in WebRtcIlbcfix_Smooth() local 53 scale=WebRtcSpl_GetSizeInBits(maxtot); in WebRtcIlbcfix_Smooth() 54 scale = (int16_t)(2 * scale) - 26; in WebRtcIlbcfix_Smooth() 55 scale=WEBRTC_SPL_MAX(0, scale); in WebRtcIlbcfix_Smooth() 57 w00=WebRtcSpl_DotProductWithScale(current,current,ENH_BLOCKL,scale); in WebRtcIlbcfix_Smooth() 58 w11=WebRtcSpl_DotProductWithScale(surround,surround,ENH_BLOCKL,scale); in WebRtcIlbcfix_Smooth() 59 w10=WebRtcSpl_DotProductWithScale(surround,current,ENH_BLOCKL,scale); in WebRtcIlbcfix_Smooth() 98 if ( (6-scale+scale1) > 31) { in WebRtcIlbcfix_Smooth() 104 -(6-scale+scale1)); in WebRtcIlbcfix_Smooth() 119 scale = scale2; in WebRtcIlbcfix_Smooth() [all …]
|
/external/skia/gm/ |
D | scaledstrokes.cpp | 48 SkScalar scale = 4.0f - j; in onDraw() local 49 paint.setStrokeWidth(4.0f / scale); in onDraw() 52 canvas->scale(scale, scale); in onDraw() 53 draw_path(size / 2.0f / scale, canvas, paint); in onDraw() 58 canvas->scale(scale, scale); in onDraw() 59 canvas->drawCircle(0.0f, 0.0f, size / 2.0f / scale, paint); in onDraw() 64 canvas->scale(scale, scale); in onDraw() 65 canvas->drawRect(SkRect::MakeXYWH(0.0f, 0.0f, size / scale, size / scale), paint); in onDraw() 70 canvas->scale(scale, scale); in onDraw() 71 canvas->drawLine(0.0f, 0.0f, size / scale, size / scale, paint); in onDraw()
|
D | hittestpath.cpp | 36 int scale = 300; variable 43 path.lineTo(randoms[0] * scale, randoms[1] * scale); 44 path.quadTo(randoms[2] * scale, randoms[3] * scale, 45 randoms[4] * scale, randoms[5] * scale); 46 path.cubicTo(randoms[6] * scale, randoms[7] * scale, 47 randoms[8] * scale, randoms[9] * scale, 48 randoms[10] * scale, randoms[11] * scale); 56 canvas->translate(SkIntToScalar(scale), 0);
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
D | Interpolation.java | 163 final float value, power, min, scale; field in Interpolation.Exp 169 scale = 1 / (1 - min); in Exp() 173 if (a <= 0.5f) return ((float)Math.pow(value, power * (a * 2 - 1)) - min) * scale / 2; in apply() 174 return (2 - ((float)Math.pow(value, -power * (a * 2 - 1)) - min) * scale) / 2; in apply() 184 return ((float)Math.pow(value, power * (a - 1)) - min) * scale; in apply() 194 return 1 - ((float)Math.pow(value, -power * a) - min) * scale; in apply() 201 final float value, power, scale, bounces; field in Interpolation.Elastic 203 public Elastic (float value, float power, int bounces, float scale) { in Elastic() argument 206 this.scale = scale; in Elastic() 213 return (float)Math.pow(value, power * (a - 1)) * MathUtils.sin(a * bounces) * scale / 2; in apply() [all …]
|
/external/aac/libFDK/include/arm/ |
D | scale.h | 95 inline static INT shiftRightSat(INT src, int scale) in shiftRightSat() argument 102 : "r"(src>>scale), "M"(SAMPLE_BITS) in shiftRightSat() 108 #define SATURATE_INT_PCM_RIGHT_SHIFT(src, scale) shiftRightSat(src, scale) argument 110 inline static INT shiftLeftSat(INT src, int scale) in shiftLeftSat() argument 117 : "r"(src<<scale), "M"(SAMPLE_BITS) in shiftLeftSat() 123 #define SATURATE_INT_PCM_LEFT_SHIFT(src, scale) shiftLeftSat(src, scale) argument 143 …#define SATURATE_RIGHT_SHIFT(src, scale, dBits) … argument 144 …( (((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS-1)))>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) … 146 : ((LONG)(src) >> (scale)) 148 …#define SATURATE_LEFT_SHIFT(src, scale, dBits) … argument [all …]
|
/external/mesa3d/src/mesa/math/ |
D | m_norm_tmp.h | 44 GLfloat scale, in TAG() 71 GLfloat scale = INV_SQRTF(len); in TAG() local 72 out[i][0] = tx * scale; in TAG() 73 out[i][1] = ty * scale; in TAG() 74 out[i][2] = tz * scale; in TAG() 83 if (scale != 1.0) { in TAG() 84 m0 *= scale, m4 *= scale, m8 *= scale; in TAG() 85 m1 *= scale, m5 *= scale, m9 *= scale; in TAG() 86 m2 *= scale, m6 *= scale, m10 *= scale; in TAG() 111 GLfloat scale, in TAG() [all …]
|
/external/opencv3/modules/stitching/include/opencv2/stitching/detail/ |
D | warpers.hpp | 130 float scale; member 156 float getScale() const { return projector_.scale; } in getScale() 157 void setScale(float val) { projector_.scale = val; } in setScale() 187 PlaneWarper(float scale = 1.f) { projector_.scale = scale; } in PlaneWarper() argument 227 SphericalWarper(float scale) { projector_.scale = scale; } in SphericalWarper() argument 252 CylindricalWarper(float scale) { projector_.scale = scale; } in CylindricalWarper() argument 274 FisheyeWarper(float scale) { projector_.scale = scale; } in FisheyeWarper() argument 288 StereographicWarper(float scale) { projector_.scale = scale; } in StereographicWarper() argument 304 CompressedRectilinearWarper(float scale, float A = 1, float B = 1) in CompressedRectilinearWarper() argument 308 projector_.scale = scale; in CompressedRectilinearWarper() [all …]
|
/external/aac/libAACdec/src/ |
D | ldfiltbank.cpp | 104 int i, scale; in multE2_DinvF_fdk() local 107 scale = (DFRACT_BITS - SAMPLE_BITS) - LDFB_HEADROOM; in multE2_DinvF_fdk() 121 FDK_ASSERT( (-WTS1-1 + scale) >= 0); in multE2_DinvF_fdk() 122 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp, -WTS1-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk() 124 FDK_ASSERT( (WTS1+1 - scale) >= 0); in multE2_DinvF_fdk() 125 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp, WTS1+1 - scale, SAMPLE_BITS); in multE2_DinvF_fdk() 145 FDK_ASSERT( (-WTS0-1 + scale) >= 0); in multE2_DinvF_fdk() 146 output[(i-N/4)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp0, -WTS0-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk() 147 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp1, -WTS1-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk() 149 FDK_ASSERT( (WTS0+1 - scale) >= 0); in multE2_DinvF_fdk() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/ |
D | GenerateCTimeScaleData.java | 73 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in main() 74 … long units = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.UNITS_VALUE); in main() 94 …cargs[1] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.EPOCH_OFFS… in main() 95 …cargs[2] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MIN_V… in main() 96 …cargs[3] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MAX_V… in main() 97 …cargs[4] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.TO_MIN_VAL… in main() 98 …cargs[5] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.TO_MAX_VAL… in main() 99 …cargs[6] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.EPOCH_OFFS… in main() 100 …cargs[7] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.EPOCH_OFFS… in main() 101 …cargs[8] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.UNITS_ROUN… in main() [all …]
|
D | CalculateLimits.java | 59 for(int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in main() 60 … BigDecimal min = UniversalTimeScale.toBigDecimalTrunc(universalMin, scale).max(universalMin); in main() 61 … BigDecimal max = UniversalTimeScale.toBigDecimalTrunc(universalMax, scale).min(universalMax); in main() 69 BigDecimal minTrunc = UniversalTimeScale.bigDecimalFrom(min, scale); in main() 70 BigDecimal maxTrunc = UniversalTimeScale.bigDecimalFrom(max, scale); in main() 73 …long units = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.UNITS_VALUE… in main() 84 … if(UniversalTimeScale.toLong(UniversalTimeScale.from(minLong, scale), scale) != minLong) { in main() 88 … if(UniversalTimeScale.toLong(UniversalTimeScale.from(maxLong, scale), scale) != maxLong) { in main() 93 if(UniversalTimeScale.toLong(min.longValue(), scale) != minLong) { in main() 97 if(UniversalTimeScale.toLong(max.longValue(), scale) != maxLong) { in main()
|
/external/libopus/silk/ |
D | stereo_find_predictor.c | 44 opus_int scale, scale1, scale2; in silk_stereo_find_predictor() local 50 scale = silk_max_int( scale1, scale2 ); in silk_stereo_find_predictor() 51 scale = scale + ( scale & 1 ); /* make even */ in silk_stereo_find_predictor() 52 nrgy = silk_RSHIFT32( nrgy, scale - scale2 ); in silk_stereo_find_predictor() 53 nrgx = silk_RSHIFT32( nrgx, scale - scale1 ); in silk_stereo_find_predictor() 55 corr = silk_inner_prod_aligned_scale( x, y, scale, length ); in silk_stereo_find_predictor() 65 scale = silk_RSHIFT( scale, 1 ); in silk_stereo_find_predictor() 66 … silk_SMLAWB( mid_res_amp_Q0[ 0 ], silk_LSHIFT( silk_SQRT_APPROX( nrgx ), scale ) - mid_res_amp_Q0… in silk_stereo_find_predictor() 71 … silk_SMLAWB( mid_res_amp_Q0[ 1 ], silk_LSHIFT( silk_SQRT_APPROX( nrgy ), scale ) - mid_res_amp_Q0… in silk_stereo_find_predictor()
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
D | Scaling.java | 56 … float scale = targetRatio > sourceRatio ? targetWidth / sourceWidth : targetHeight / sourceHeight; in apply() local 57 temp.x = sourceWidth * scale; in apply() 58 temp.y = sourceHeight * scale; in apply() 64 … float scale = targetRatio < sourceRatio ? targetWidth / sourceWidth : targetHeight / sourceHeight; in apply() 65 temp.x = sourceWidth * scale; in apply() 66 temp.y = sourceHeight * scale; in apply() 70 float scale = targetWidth / sourceWidth; in apply() 71 temp.x = sourceWidth * scale; in apply() 72 temp.y = sourceHeight * scale; in apply() 76 float scale = targetHeight / sourceHeight; in apply() [all …]
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
D | SpriteBatchRotationTest.java | 32 float scale = 1; field in SpriteBatchRotationTest 45 …spriteBatch.draw(texture, 64, 58, 16, 16, 32, 32, scale, scale, 0, 0, 0, texture.getWidth(), textu… in render() 47 …spriteBatch.draw(texture, 112, 58, 16, 16, 32, 32, scale, scale, angle, 0, 0, texture.getWidth(), … in render() 49 …spriteBatch.draw(texture, 160, 58, 0, 0, 32, 32, scale, scale, angle, 0, 0, texture.getWidth(), te… in render() 54 scale += vScale * Gdx.graphics.getDeltaTime(); in render() 55 if (scale > 2) { in render() 57 scale = 2; in render() 59 if (scale < 0) { in render() 61 scale = 0; in render()
|
/external/chromium-trace/catapult/third_party/graphy/graphy/backends/google_chart_api/ |
D | util_test.py | 90 scale = util.ScaleData 92 self.assertEqual([1, 2, 3], scale([1, 2, 3], 1, 3, 1, 3)) 93 self.assertEqual([-1, 0, 1], scale([-1, 0, 1], -1, 1, -1, 1)) 96 self.assertEqual([4, 5, 6], scale([1, 2, 3], 1, 3, 4, 6)) 97 self.assertEqual([-3, -2, -1], scale([1, 2, 3], 1, 3, -3, -1)) 100 self.assertEqual([1, 3.5, 6], scale([1, 2, 3], 1, 3, 1, 6)) 101 self.assertEqual([-6, 0, 6], scale([1, 2, 3], 1, 3, -6, 6)) 104 self.assertEqual([100, 200, 300], scale([1, 2, 3], 1, 3, 100, 300)) 107 scale = util.ScaleData 108 self.assertEqual([1.5, 2, 2.5], scale([1, 2, 3], 0, 4, 1, 3)) [all …]
|