Searched refs:lengthSquared (Results 1 - 21 of 21) sorted by relevance

/external/skia/tests/
H A DPathOpsDVectorTest.cpp41 double lenSq = v1.lengthSquared();
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/
H A DBoundingSphere.java286 Vector3f o = a.cross(b).multLocal(c.lengthSquared()).addLocal(
287 c.cross(a).multLocal(b.lengthSquared())).addLocal(
288 b.cross(c).multLocal(a.lengthSquared())).divideLocal(
320 Vector3f o = acrossB.cross(a).multLocal(b.lengthSquared()).addLocal(b.cross(acrossB).multLocal(a.lengthSquared())).divideLocal(Denominator);
364 float radiusSqr = diff.lengthSquared();
583 float lengthSquared = diff.lengthSquared();
588 if (fRDiffSqr >= lengthSquared) {
604 float length = (float) Math.sqrt(lengthSquared);
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/collision/
H A DSweepSphere.java153 float c = temp1.negateLocal().lengthSquared() - 1f;
158 // float C = vertex.subtract(sCenter).lengthSquared() - 1f;
177 float edgeSquared = edge.lengthSquared();
178 float baseSquared = base.lengthSquared();
289 float velocitySquared = sVelocity.lengthSquared();
367 float a = temp1.lengthSquared();
369 float c = temp2.lengthSquared() - temp3.getX() * temp3.getX();
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
H A DBillboardControl.java224 float lengthSquared = left.x * left.x + left.z * left.z;
225 if (lengthSquared < FastMath.FLT_EPSILON) {
231 float invLength = FastMath.invSqrt(lengthSquared);
/external/skia/src/core/
H A DSkPoint.cpp87 // *lengthSquared. Returns true if the distance is judged to be "nearly zero".
93 float *lengthSquared) {
94 *lengthSquared = getLengthSquared(dx, dy);
95 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero);
92 isLengthNearlyZero(float dx, float dy, float *lengthSquared) argument
/external/skia/src/pathops/
H A DSkPathOpsPoint.h72 return sqrt(lengthSquared());
75 double lengthSquared() const { function in struct:SkDVector
187 return temp.lengthSquared();
H A DSkOpAngle.cpp435 double lenSq = v.lengthSquared();
496 if (cept.lengthSquared() * 2 < total.lengthSquared()) {
H A DSkPathOpsTSect.h330 double distSq = (fPerpPt - cPt).lengthSquared();
331 double dist2Sq = (i.pt(1) - cPt).lengthSquared();
575 double test = (fPart[outer] - fPart[inner]).lengthSquared();
/external/jmonkeyengine/engine/src/core/com/jme3/math/
H A DRing.java194 if (b1.lengthSquared() < FastMath.FLT_EPSILON) {
H A DVector2f.java289 return FastMath.sqrt(lengthSquared());
293 * <code>lengthSquared</code> calculates the squared value of the
298 public float lengthSquared() { method in class:Vector2f
H A DLineSegment.java129 float len = compVec1.lengthSquared();
142 float lengthOfDiff = compVec1.lengthSquared();
424 float fC = kDiff.lengthSquared();
H A DVector3f.java388 float d = other.lengthSquared(); // |B|^2
410 return FastMath.sqrt(lengthSquared());
414 * <code>lengthSquared</code> calculates the squared value of the
419 public float lengthSquared() { method in class:Vector3f
H A DVector4f.java320 float d = other.lengthSquared(); // |B|^2
342 return FastMath.sqrt(lengthSquared());
346 * <code>lengthSquared</code> calculates the squared value of the
351 public float lengthSquared() { method in class:Vector4f
H A DLine.java121 float len = compVec1.lengthSquared();
H A DRay.java420 float len = tempVa.lengthSquared();
/external/deqp/framework/referencerenderer/
H A DrrRasterizer.cpp218 return 2 * dotProduct * dotProduct > tcu::lengthSquared(v)*tcu::lengthSquared(cornerExitNormal);
231 return 2 * (-dotProduct) * (-dotProduct) < tcu::lengthSquared(v)*tcu::lengthSquared(cornerExitNormal);
263 const deInt64 lineLengthSquared = tcu::lengthSquared(u);
949 const float t = tcu::dot((pr - pa).asFloat(), (pb - pa).asFloat()) / tcu::lengthSquared(pb.asFloat() - pa.asFloat());
/external/deqp/framework/common/
H A DtcuVectorUtil.hpp142 inline T lengthSquared (const Vector<T, Size>& a) function in namespace:tcu
153 return ::sqrt(lengthSquared(a));
/external/deqp/modules/glshared/
H A DglsRasterizationTestUtil.cpp123 if (crossProduct * crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(line))
421 // Assuming lengthSquared will not be implemented as sqrt(x)^2, allow 1 ULP
422 const float divisor = tcu::lengthSquared(pb - pa);
2110 if (crossProduct < 0 && crossProduct*crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(edge))
2112 if (crossProduct < 0 || crossProduct*crossProduct < maxPixelDistanceSquared * tcu::lengthSquared(edge))
/external/jmonkeyengine/engine/src/core/com/jme3/util/
H A DTangentBinormalGenerator.java305 return (a.subtract(b).cross(c.subtract(b))).lengthSquared() == 0;
/external/deqp/modules/gles2/functional/
H A Des2fClippingTests.cpp358 const deInt64 normalLen2 = tcu::lengthSquared(normalDir);
/external/deqp/modules/gles3/functional/
H A Des3fClippingTests.cpp361 const deInt64 normalLen2 = tcu::lengthSquared(normalDir);

Completed in 802 milliseconds