/external/skia/src/core/ |
D | SkPoint3.cpp | 21 static inline bool is_length_nearly_zero(float x, float y, float z, float *lengthSquared) { in is_length_nearly_zero() argument 22 *lengthSquared = get_length_squared(x, y, z); in is_length_nearly_zero() 23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
|
D | SkPoint.cpp | 93 float *lengthSquared) { in isLengthNearlyZero() argument 94 *lengthSquared = getLengthSquared(dx, dy); in isLengthNearlyZero() 95 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in isLengthNearlyZero()
|
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
D | BoundingSphere.java | 286 Vector3f o = a.cross(b).multLocal(c.lengthSquared()).addLocal( in setSphere() 287 c.cross(a).multLocal(b.lengthSquared())).addLocal( in setSphere() 288 b.cross(c).multLocal(a.lengthSquared())).divideLocal( in setSphere() 320 …Vector3f o = acrossB.cross(a).multLocal(b.lengthSquared()).addLocal(b.cross(acrossB).multLocal(a.l… in setSphere() 364 float radiusSqr = diff.lengthSquared(); in averagePoints() 583 float lengthSquared = diff.lengthSquared(); in merge() local 588 if (fRDiffSqr >= lengthSquared) { in merge() 604 float length = (float) Math.sqrt(lengthSquared); in merge()
|
/external/jmonkeyengine/engine/src/core/com/jme3/collision/ |
D | SweepSphere.java | 153 float c = temp1.negateLocal().lengthSquared() - 1f; in collideWithVertex() 177 float edgeSquared = edge.lengthSquared(); in collideWithSegment() 178 float baseSquared = base.lengthSquared(); in collideWithSegment() 289 float velocitySquared = sVelocity.lengthSquared(); in collideWithTriangle() 367 float a = temp1.lengthSquared(); in collideWithSweepSphere() 369 float c = temp2.lengthSquared() - temp3.getX() * temp3.getX(); in collideWithSweepSphere()
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
D | BillboardControl.java | 224 float lengthSquared = left.x * left.x + left.z * left.z; in rotateAxial() local 225 if (lengthSquared < FastMath.FLT_EPSILON) { in rotateAxial() 231 float invLength = FastMath.invSqrt(lengthSquared); in rotateAxial()
|
/external/skia/src/pathops/ |
D | SkPathOpsPoint.h | 72 return sqrt(lengthSquared()); in length() 75 double lengthSquared() const { in lengthSquared() function 187 return temp.lengthSquared(); in distanceSquared()
|
D | SkOpAngle.cpp | 387 double lenSq = v.lengthSquared(); in distEndRatio() 448 if (cept.lengthSquared() * 2 < total.lengthSquared()) { in endsIntersect()
|
/external/skia/tests/ |
D | PathOpsDVectorTest.cpp | 41 double lenSq = v1.lengthSquared(); in DEF_TEST()
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/joints/ |
D | ConstantVolumeJoint.java | 160 float normSqrd = delta.lengthSquared(); in constrainEdges() 226 dotMassSum += (d[i].lengthSquared()) / bodies[i].getMass(); in solveVelocityConstraints()
|
D | MouseJoint.java | 247 if (m_impulse.lengthSquared() > maxImpulse * maxImpulse) { in solveVelocityConstraints()
|
D | FrictionJoint.java | 261 if (m_linearImpulse.lengthSquared() > maxImpulse * maxImpulse) { in solveVelocityConstraints()
|
D | MotorJoint.java | 310 if (m_linearImpulse.lengthSquared() > maxImpulse * maxImpulse) { in solveVelocityConstraints()
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | Vector2f.java | 289 return FastMath.sqrt(lengthSquared()); in length() 298 public float lengthSquared() { in lengthSquared() method in Vector2f
|
D | LineSegment.java | 129 float len = compVec1.lengthSquared(); in distanceSquared() 142 float lengthOfDiff = compVec1.lengthSquared(); in distanceSquared() 424 float fC = kDiff.lengthSquared(); in distanceSquared()
|
D | Vector4f.java | 320 float d = other.lengthSquared(); // |B|^2 in project() 342 return FastMath.sqrt(lengthSquared()); in length() 351 public float lengthSquared() { in lengthSquared() method in Vector4f
|
D | Vector3f.java | 388 float d = other.lengthSquared(); // |B|^2 in project() 410 return FastMath.sqrt(lengthSquared()); in length() 419 public float lengthSquared() { in lengthSquared() method in Vector3f
|
D | Ring.java | 194 if (b1.lengthSquared() < FastMath.FLT_EPSILON) { in random()
|
D | Line.java | 121 float len = compVec1.lengthSquared(); in distanceSquared()
|
D | Ray.java | 420 float len = tempVa.lengthSquared(); in distanceSquared()
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/ |
D | Distance.java | 641 float distanceSqr1 = closestPoint.lengthSquared(); in distance() 675 distanceSqr2 = closestPoint.lengthSquared(); in distance() 687 if (d.lengthSquared() < Settings.EPSILON * Settings.EPSILON) { in distance()
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/shapes/ |
D | PolygonShape.java | 198 if (c == 0.0f && v.lengthSquared() > r.lengthSquared()) { in set() 229 assert (edge.lengthSquared() > Settings.EPSILON * Settings.EPSILON); in set()
|
/external/deqp/framework/referencerenderer/ |
D | rrRasterizer.cpp | 218 return 2 * dotProduct * dotProduct > tcu::lengthSquared(v)*tcu::lengthSquared(cornerExitNormal); in lineInCornerAngleRange() 231 …return 2 * (-dotProduct) * (-dotProduct) < tcu::lengthSquared(v)*tcu::lengthSquared(cornerExitNorm… in lineInCornerOutsideAngleRange() 263 const deInt64 lineLengthSquared = tcu::lengthSquared(u); in doesLineSegmentExitDiamond() 949 …const float t = tcu::dot((pr - pa).asFloat(), (pb - pa).asFloat()) / tcu::lengthSquared(p… in rasterize()
|
/external/deqp/framework/common/ |
D | tcuVectorUtil.hpp | 135 inline T lengthSquared (const Vector<T, Size>& a) in lengthSquared() function 146 return ::sqrt(lengthSquared(a)); in length() 152 return deFloatSqrt(lengthSquared(a)); in length()
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/ |
D | Vec2.java | 143 public final float lengthSquared() { in lengthSquared() method in Vec2
|
/external/deqp/modules/glshared/ |
D | glsRasterizationTestUtil.cpp | 123 if (crossProduct * crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(line)) in pixelNearLineSegment() 422 const float divisor = tcu::lengthSquared(pb - pa); in calcLineInterpolationWeights() 2110 …if (crossProduct < 0 && crossProduct*crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(e… in calculateTriangleCoverage() 2112 …if (crossProduct < 0 || crossProduct*crossProduct < maxPixelDistanceSquared * tcu::lengthSquared(e… in calculateTriangleCoverage()
|