Lines Matching refs:dst

137     public boolean mapRect(RectF dst, RectF src) {
150 dst.left = Math.min(Math.min(corners[0], corners[2]), Math.min(corners[4], corners[6]));
151 dst.right = Math.max(Math.max(corners[0], corners[2]), Math.max(corners[4], corners[6]));
153 dst.top = Math.min(Math.min(corners[1], corners[3]), Math.min(corners[5], corners[7]));
154 dst.bottom = Math.max(Math.max(corners[1], corners[3]), Math.max(corners[5], corners[7]));
528 RectF dst, int stf) {
539 if (dst.isEmpty()) {
544 float tx, sx = dst.width() / src.width();
545 float ty, sy = dst.height() / src.height();
557 tx = dst.left - src.left * sx;
558 ty = dst.top - src.top * sy;
563 diff = dst.width() - src.width() * sy;
565 diff = dst.height() - src.height() * sy;
593 float[] dst, int dstIndex, int pointCount) {
630 /*package*/ static void native_mapPoints(long native_object, float[] dst, int dstIndex,
638 d.mapPoints(dst, dstIndex, src, srcIndex, ptCount);
640 d.mapVectors(dst, dstIndex, src, srcIndex, ptCount);
645 /*package*/ static boolean native_mapRect(long native_object, RectF dst, RectF src) {
651 return d.mapRect(dst, src);
844 * the transformed points into the array of points specified by dst. The
847 * @param dst The array of dst points (x,y pairs)
848 * @param dstIndex The index of the first [x,y] pair of dst floats
854 private void mapPoints(float[] dst, int dstIndex, float[] src, int srcIndex,
858 float[] tmpDest = dst;
859 boolean inPlace = dst == src;
878 System.arraycopy(tmpDest, dstIndex, dst, dstIndex, count);
893 private void mapVectors(float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount) {
900 mapPoints(dst, dstIndex, src, srcIndex, ptCount);
905 dst[dstIndex + i] = dst[dstIndex + i] - origin[0];
906 dst[dstIndex + i + 1] = dst[dstIndex + i + 1] - origin[1];
916 copy.mapPoints(dst, dstIndex, src, srcIndex, ptCount);