Home
last modified time | relevance | path

Searched refs:lengthSquared (Results 1 – 25 of 30) sorted by relevance

12

/external/skia/src/core/
DSkPoint3.cpp21 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()
DSkPoint.cpp93 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/
DBoundingSphere.java286 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/
DSweepSphere.java153 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/
DBillboardControl.java224 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/
DSkPathOpsPoint.h72 return sqrt(lengthSquared()); in length()
75 double lengthSquared() const { in lengthSquared() function
187 return temp.lengthSquared(); in distanceSquared()
DSkOpAngle.cpp387 double lenSq = v.lengthSquared(); in distEndRatio()
448 if (cept.lengthSquared() * 2 < total.lengthSquared()) { in endsIntersect()
/external/skia/tests/
DPathOpsDVectorTest.cpp41 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/
DConstantVolumeJoint.java160 float normSqrd = delta.lengthSquared(); in constrainEdges()
226 dotMassSum += (d[i].lengthSquared()) / bodies[i].getMass(); in solveVelocityConstraints()
DMouseJoint.java247 if (m_impulse.lengthSquared() > maxImpulse * maxImpulse) { in solveVelocityConstraints()
DFrictionJoint.java261 if (m_linearImpulse.lengthSquared() > maxImpulse * maxImpulse) { in solveVelocityConstraints()
DMotorJoint.java310 if (m_linearImpulse.lengthSquared() > maxImpulse * maxImpulse) { in solveVelocityConstraints()
/external/jmonkeyengine/engine/src/core/com/jme3/math/
DVector2f.java289 return FastMath.sqrt(lengthSquared()); in length()
298 public float lengthSquared() { in lengthSquared() method in Vector2f
DLineSegment.java129 float len = compVec1.lengthSquared(); in distanceSquared()
142 float lengthOfDiff = compVec1.lengthSquared(); in distanceSquared()
424 float fC = kDiff.lengthSquared(); in distanceSquared()
DVector4f.java320 float d = other.lengthSquared(); // |B|^2 in project()
342 return FastMath.sqrt(lengthSquared()); in length()
351 public float lengthSquared() { in lengthSquared() method in Vector4f
DVector3f.java388 float d = other.lengthSquared(); // |B|^2 in project()
410 return FastMath.sqrt(lengthSquared()); in length()
419 public float lengthSquared() { in lengthSquared() method in Vector3f
DRing.java194 if (b1.lengthSquared() < FastMath.FLT_EPSILON) { in random()
DLine.java121 float len = compVec1.lengthSquared(); in distanceSquared()
DRay.java420 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/
DDistance.java641 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/
DPolygonShape.java198 if (c == 0.0f && v.lengthSquared() > r.lengthSquared()) { in set()
229 assert (edge.lengthSquared() > Settings.EPSILON * Settings.EPSILON); in set()
/external/deqp/framework/referencerenderer/
DrrRasterizer.cpp218 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/
DtcuVectorUtil.hpp135 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/
DVec2.java143 public final float lengthSquared() { in lengthSquared() method in Vec2
/external/deqp/modules/glshared/
DglsRasterizationTestUtil.cpp123 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()

12