Home
last modified time | relevance | path

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

/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.cpp92 float *lengthSquared) { in is_length_nearly_zero() argument
93 *lengthSquared = getLengthSquared(dx, dy); in is_length_nearly_zero()
94 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
/external/skia/src/pathops/
DSkPathOpsPoint.h80 return sqrt(lengthSquared()); in length()
83 double lengthSquared() const { in lengthSquared() function
221 return temp.lengthSquared(); in distanceSquared()
DSkOpAngle.cpp419 double lenSq = v.lengthSquared(); in distEndRatio()
480 if (cept.lengthSquared() * 2 < total.lengthSquared()) { in endsIntersect()
DSkPathOpsTSect.h371 double distSq = (fPerpPt - cPt).lengthSquared(); in setPerp()
372 double dist2Sq = (i.pt(1) - cPt).lengthSquared(); in setPerp()
618 double test = (fPart[outer] - fPart[inner]).lengthSquared(); in linearIntersects()
/external/skia/tests/
DPathOpsDVectorTest.cpp41 double lenSq = v1.lengthSquared(); in DEF_TEST()
/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()
954 …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()
DtcuRasterizationVerifier.cpp119 if (crossProduct * crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(line)) in pixelNearLineSegment()
418 const float divisor = tcu::lengthSquared(pb - pa); in calcLineInterpolationWeights()
2156 …if (crossProduct < 0 && crossProduct*crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(e… in calculateTriangleCoverage()
2158 …if (crossProduct < 0 || crossProduct*crossProduct < maxPixelDistanceSquared * tcu::lengthSquared(e… in calculateTriangleCoverage()
/external/deqp/modules/gles3/functional/
Des3fClippingTests.cpp361 const deInt64 normalLen2 = tcu::lengthSquared(normalDir); in twoPointClippedTriangleInvisible()
/external/deqp/modules/gles2/functional/
Des2fClippingTests.cpp358 const deInt64 normalLen2 = tcu::lengthSquared(normalDir); in twoPointClippedTriangleInvisible()