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

/external/skia/tests/
H A DPathOpsDVectorTest.cpp43 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/chromium_org/third_party/WebKit/Source/platform/geometry/
H A DFloatPoint3D.h121 float lengthSquared() const { return this->dot(*this); } function in class:WebCore::FloatPoint3D
122 float length() const { return sqrtf(lengthSquared()); }
H A DFloatPoint.cpp72 return sqrtf(lengthSquared());
H A DFloatPoint.h120 float lengthSquared() const function in class:WebCore::FloatPoint
/external/chromium_org/third_party/skia/src/core/
H A DSkPoint.cpp96 // *lengthSquared. Returns true if the distance is judged to be "nearly zero".
102 float *lengthSquared) {
103 *lengthSquared = getLengthSquared(dx, dy);
104 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero);
101 isLengthNearlyZero(float dx, float dy, float *lengthSquared) argument
/external/chromium_org/third_party/skia/src/pathops/
H A DSkPathOpsPoint.h56 return sqrt(lengthSquared());
59 double lengthSquared() const { function in struct:SkDVector
169 return temp.lengthSquared();
H A DSkOpAngle.cpp226 double dist = dxy.lengthSquared();
241 double dist = dxy.lengthSquared();
/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.cpp96 // *lengthSquared. Returns true if the distance is judged to be "nearly zero".
102 float *lengthSquared) {
103 *lengthSquared = getLengthSquared(dx, dy);
104 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero);
101 isLengthNearlyZero(float dx, float dy, float *lengthSquared) argument
/external/skia/src/pathops/
H A DSkPathOpsPoint.h56 return sqrt(lengthSquared());
59 double lengthSquared() const { function in struct:SkDVector
169 return temp.lengthSquared();
H A DSkOpAngle.cpp226 double dist = dxy.lengthSquared();
241 double dist = dxy.lengthSquared();
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
H A DRenderSVGPath.cpp119 if (radiusVector.lengthSquared() < strokeWidth * strokeWidth * .25f)
/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/jmonkeyengine/engine/src/core/com/jme3/util/
H A DTangentBinormalGenerator.java305 return (a.subtract(b).cross(c.subtract(b))).lengthSquared() == 0;

Completed in 300 milliseconds