Home
last modified time | relevance | path

Searched refs:xDelta (Results 1 – 12 of 12) sorted by relevance

/external/guava/android/guava-tests/test/com/google/common/math/
DLinearTransformationTest.java39 double xDelta = 5.6; in testMappingAnd_regular() local
42 LinearTransformation.mapping(x1, y1).and(x1 + xDelta, y1 + yDelta); in testMappingAnd_regular()
43 assertDiagonalLinearTransformation(transformation, x1, y1, xDelta, yDelta); in testMappingAnd_regular()
48 double xDelta = 3.4; in testMappingAnd_horizontal() local
50 LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y); in testMappingAnd_horizontal()
141 double xDelta = -5.6; in testMappingWithSlope_regular() local
144 assertDiagonalLinearTransformation(transformation, x1, y1, xDelta, xDelta * slope); in testMappingWithSlope_regular()
DStatsTesting.java377 LinearTransformation transformation, double x1, double y1, double xDelta, double yDelta) { in assertDiagonalLinearTransformation() argument
378 checkArgument(xDelta != 0.0); in assertDiagonalLinearTransformation()
385 assertThat(transformation.transform(x1 + xDelta)).isWithin(ALLOWED_ERROR).of(y1 + yDelta); in assertDiagonalLinearTransformation()
389 .of(x1 + xDelta); in assertDiagonalLinearTransformation()
390 assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(yDelta / xDelta); in assertDiagonalLinearTransformation()
391 assertThat(transformation.inverse().slope()).isWithin(ALLOWED_ERROR).of(xDelta / yDelta); in assertDiagonalLinearTransformation()
/external/guava/guava-tests/test/com/google/common/math/
DLinearTransformationTest.java39 double xDelta = 5.6; in testMappingAnd_regular() local
42 LinearTransformation.mapping(x1, y1).and(x1 + xDelta, y1 + yDelta); in testMappingAnd_regular()
43 assertDiagonalLinearTransformation(transformation, x1, y1, xDelta, yDelta); in testMappingAnd_regular()
48 double xDelta = 3.4; in testMappingAnd_horizontal() local
50 LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y); in testMappingAnd_horizontal()
141 double xDelta = -5.6; in testMappingWithSlope_regular() local
144 assertDiagonalLinearTransformation(transformation, x1, y1, xDelta, xDelta * slope); in testMappingWithSlope_regular()
DStatsTesting.java406 LinearTransformation transformation, double x1, double y1, double xDelta, double yDelta) { in assertDiagonalLinearTransformation() argument
407 checkArgument(xDelta != 0.0); in assertDiagonalLinearTransformation()
414 assertThat(transformation.transform(x1 + xDelta)).isWithin(ALLOWED_ERROR).of(y1 + yDelta); in assertDiagonalLinearTransformation()
418 .of(x1 + xDelta); in assertDiagonalLinearTransformation()
419 assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(yDelta / xDelta); in assertDiagonalLinearTransformation()
420 assertThat(transformation.inverse().slope()).isWithin(ALLOWED_ERROR).of(xDelta / yDelta); in assertDiagonalLinearTransformation()
/external/skia/samplecode/
DSampleChart.cpp31 SkScalar xLeft, SkScalar xDelta, in gen_paths() argument
52 x += xDelta; in gen_paths()
58 x += xDelta; in gen_paths()
66 x -= xDelta; in gen_paths()
70 x -= xDelta; in gen_paths()
74 fill->lineTo(x - xDelta, yBase); in gen_paths()
/external/skia/bench/
DChartBench.cpp37 SkScalar xLeft, SkScalar xDelta, in gen_paths() argument
60 x += xDelta; in gen_paths()
66 x += xDelta; in gen_paths()
74 x -= xDelta; in gen_paths()
78 x -= xDelta; in gen_paths()
82 fill->lineTo(x - xDelta, yBase); in gen_paths()
/external/skqp/bench/
DChartBench.cpp37 SkScalar xLeft, SkScalar xDelta, in gen_paths() argument
60 x += xDelta; in gen_paths()
66 x += xDelta; in gen_paths()
74 x -= xDelta; in gen_paths()
78 x -= xDelta; in gen_paths()
82 fill->lineTo(x - xDelta, yBase); in gen_paths()
/external/skqp/samplecode/
DSampleChart.cpp31 SkScalar xLeft, SkScalar xDelta, in gen_paths() argument
54 x += xDelta; in gen_paths()
60 x += xDelta; in gen_paths()
68 x -= xDelta; in gen_paths()
72 x -= xDelta; in gen_paths()
76 fill->lineTo(x - xDelta, yBase); in gen_paths()
/external/skqp/gm/
Dtextblobblockreordering.cpp60 const int xDelta = SkScalarFloorToInt(bounds.width()); in onDraw() local
64 canvas->translate(SkIntToScalar(xDelta), SkIntToScalar(yDelta)); in onDraw()
74 canvas->translate(SkIntToScalar(xDelta), SkIntToScalar(yDelta)); in onDraw()
/external/skia/gm/
Dtextblobblockreordering.cpp72 const int xDelta = SkScalarFloorToInt(bounds.width()); in onDraw() local
76 canvas->translate(SkIntToScalar(xDelta), SkIntToScalar(yDelta)); in onDraw()
86 canvas->translate(SkIntToScalar(xDelta), SkIntToScalar(yDelta)); in onDraw()
/external/replicaisland/src/com/replica/replicaisland/
DCameraSystem.java135 final float xDelta = targetPosition.x - mCurrentCameraPosition.x; in update() local
136 if (Math.abs(xDelta) > X_FOLLOW_DISTANCE) { in update()
137 … mCurrentCameraPosition.x = targetPosition.x - (X_FOLLOW_DISTANCE * Utils.sign(xDelta)); in update()
/external/deqp/framework/referencerenderer/
DrrRasterizer.cpp921 int xDelta = (m_v1 - m_v0).x() > 0 ? 1 : -1; in init() local
924 m_curPos.x() = xDelta > 0 ? m_bboxMin.x() : m_bboxMax.x(); in init()
948 int xDelta = (m_v1 - m_v0).x() > 0 ? 1 : -1; in rasterize() local
1024 m_curPos.x() += xDelta; in rasterize()
1028 m_curPos.x() = xDelta > 0 ? m_bboxMin.x() : m_bboxMax.x(); in rasterize()