Home
last modified time | relevance | path

Searched refs:distanceSquared (Results 1 – 18 of 18) sorted by relevance

/external/skia/src/pathops/
DSkOpCubicHull.cpp101 double dist1_0 = fPts[1].distanceSquared(fPts[0]); in convexHull()
102 double dist1_3 = fPts[1].distanceSquared(fPts[3]); in convexHull()
103 double dist2_0 = fPts[2].distanceSquared(fPts[0]); in convexHull()
104 double dist2_3 = fPts[2].distanceSquared(fPts[3]); in convexHull()
DSkIntersections.cpp19 double dist = testPt.distanceSquared(iPt); in closestTo()
DSkPathOpsPoint.h185 double distanceSquared(const SkDPoint& a) const { in distanceSquared() function
DSkOpAngle.cpp239 double testLenSq = testStartPt.distanceSquared(testEndPt); in checkNearCoincidence()
251 double distSq = testStartPt.distanceSquared(nextStartPt); in checkNearCoincidence()
264 double nextLenSq = nextStartPt.distanceSquared(nextEndPt); in checkNearCoincidence()
DSkPathOpsTSect.h413 double startDist = test->fPart[0].distanceSquared(pt); in closestBoundedT()
418 double endDist = test->fPart[OppCurve::kPointLast].distanceSquared(pt); in closestBoundedT()
1273 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); in linesIntersect()
1292 double distSq = oppIPt.distanceSquared(iPt); in linesIntersect()
1789 double dist = c1[c1Index].distanceSquared(c2[c2Index]); in findEnd()
DSkOpSegment.cpp529 double testDistSq = testPt.distanceSquared(i.pt(index)); in distSq()
/external/jmonkeyengine/engine/src/core/com/jme3/math/
DLineSegment.java99 return FastMath.sqrt(distanceSquared(point)); in distance()
103 return FastMath.sqrt(distanceSquared(ls)); in distance()
107 return FastMath.sqrt(distanceSquared(r)); in distance()
110 public float distanceSquared(Vector3f point) { in distanceSquared() method in LineSegment
134 public float distanceSquared(LineSegment test) { in distanceSquared() method in LineSegment
419 public float distanceSquared(Ray r) { in distanceSquared() method in LineSegment
DVector2f.java309 public float distanceSquared(Vector2f v) { in distanceSquared() method in Vector2f
323 public float distanceSquared(float otherX, float otherY) { in distanceSquared() method in Vector2f
337 return FastMath.sqrt(distanceSquared(v)); in distance()
DLine.java111 public float distanceSquared(Vector3f point) { in distanceSquared() method in Line
127 return FastMath.sqrt(distanceSquared(point)); in distance()
DVector3f.java430 public float distanceSquared(Vector3f v) { in distanceSquared() method in Vector3f
445 return FastMath.sqrt(distanceSquared(v)); in distance()
DVector4f.java362 public float distanceSquared(Vector4f v) { in distanceSquared() method in Vector4f
378 return FastMath.sqrt(distanceSquared(v)); in distance()
DRay.java404 public float distanceSquared(Vector3f point) { in distanceSquared() method in Ray
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/
DBoundingSphere.java248 if (tempA.distanceSquared(center) - (radius * radius) > RADIUS_EPSILON - 1f) { in recurseMini()
803 float d1 = center.distanceSquared(t.get1()); in collideWith()
804 float d2 = center.distanceSquared(t.get2()); in collideWith()
805 float d3 = center.distanceSquared(t.get3()); in collideWith()
822 return center.distanceSquared(point) < (getRadius() * getRadius()); in contains()
827 return center.distanceSquared(point) <= (getRadius() * getRadius()); in intersects()
DBoundingVolume.java225 return center.distanceSquared(point); in distanceSquaredTo()
/external/skia/tests/
DPathOpsDPointTest.cpp44 REPORTER_ASSERT(reporter, pt.distanceSquared(p) == pt.fX * pt.fX + pt.fY * pt.fY); in DEF_TEST()
/external/jmonkeyengine/engine/src/core/com/jme3/light/
DPointLight.java65 lastDistance = owner.getWorldTranslation().distanceSquared(position); in computeLastDistance()
DSpotLight.java83 lastDistance = owner.getWorldTranslation().distanceSquared(position); in computeLastDistance()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/scene/plugins/
DOBJLoader.java206 float d1 = v0.v.distanceSquared(v2.v); in quadToTriangle()
207 float d2 = v1.v.distanceSquared(v3.v); in quadToTriangle()