Home
last modified time | relevance | path

Searched refs:previousPoint (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPath.java121 Point2D.Float previousPoint = null; in approximate() local
126 if (previousPoint != null && type != PathIterator.SEG_MOVETO) { in approximate()
127 totalLength += (float) currentPoint.distance(previousPoint); in approximate()
129 previousPoint = currentPoint; in approximate()
136 previousPoint = null; in approximate()
142 float distance = previousPoint != null ? (float) previousPoint.distance(point) : .0f; in approximate()
148 previousPoint = point; in approximate()
DCachedPathIteratorFactory.java211 float[] previousPoint = new float[2]; in getFlatPathLength() local
223 (float) Point2D.distance(previousPoint[0], previousPoint[1], segment[0], segment[1]); in getFlatPathLength()
227 previousPoint[0] = segment[0]; in getFlatPathLength()
228 previousPoint[1] = segment[1]; in getFlatPathLength()