Home
last modified time | relevance | path

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

12

/third_party/flutter/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()
/third_party/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()
/third_party/flutter/skia/src/pathops/
DSkPathOpsPoint.h81 return sqrt(lengthSquared()); in length()
84 double lengthSquared() const { in lengthSquared() function
229 return temp.lengthSquared(); in distanceSquared()
DSkOpAngle.cpp496 double lenSq = v.lengthSquared(); in distEndRatio()
557 if (cept.lengthSquared() * 2 < total.lengthSquared()) { in endsIntersect()
DSkPathOpsTSect.cpp27 double distSq = (fPerpPt - cPt).lengthSquared(); in setPerp()
28 double dist2Sq = (i.pt(1) - cPt).lengthSquared(); in setPerp()
266 double test = ((*fPart)[outer] - (*fPart)[inner]).lengthSquared(); in linearIntersects()
/third_party/skia/src/pathops/
DSkPathOpsPoint.h81 return sqrt(lengthSquared()); in length()
84 double lengthSquared() const { in lengthSquared() function
229 return temp.lengthSquared(); in distanceSquared()
DSkOpAngle.cpp496 double lenSq = v.lengthSquared(); in distEndRatio()
557 if (cept.lengthSquared() * 2 < total.lengthSquared()) { in endsIntersect()
DSkPathOpsTSect.cpp28 double distSq = (fPerpPt - cPt).lengthSquared(); in setPerp()
29 double dist2Sq = (i.pt(1) - cPt).lengthSquared(); in setPerp()
267 double test = ((*fPart)[outer] - (*fPart)[inner]).lengthSquared(); in linearIntersects()
/third_party/skia/tests/
DPathOpsDVectorTest.cpp41 double lenSq = v1.lengthSquared(); in DEF_TEST()
DM44Test.cpp75 REPORTER_ASSERT(reporter, a.lengthSquared() == 1 + 4 + 9); in DEF_TEST()
/third_party/flutter/skia/tests/
DPathOpsDVectorTest.cpp41 double lenSq = v1.lengthSquared(); in DEF_TEST()
/third_party/skia/modules/skottie/src/animator/
DVec2KeyframeAnimator.cpp175 const auto v0_len2 = v0.lengthSquared(), in backfill_spatial()
176 v1_len2 = v1.lengthSquared(); in backfill_spatial()
/third_party/skia/include/core/
DSkM44.h40 SkScalar lengthSquared() const { return Dot(*this, *this); } in lengthSquared() function
41 SkScalar length() const { return SkScalarSqrt(this->lengthSquared()); } in length()
82 SkScalar lengthSquared() const { return Dot(*this, *this); } in lengthSquared() function
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dvector_utils.h88 Type lengthSquared() const;
452 return std::sqrt(lengthSquared()); in length()
456 Type VectorBase<Dimension, Type>::lengthSquared() const in lengthSquared() function
Dvector_utils_unittest.cpp163 ASSERT_EQ(25.0, vec.lengthSquared()); in TEST()
/third_party/skia/third_party/externals/angle2/src/common/
Dvector_utils.h88 Type lengthSquared() const;
452 return std::sqrt(lengthSquared()); in length()
456 Type VectorBase<Dimension, Type>::lengthSquared() const in lengthSquared() function
Dvector_utils_unittest.cpp163 ASSERT_EQ(25.0, vec.lengthSquared()); in TEST()
/third_party/vk-gl-cts/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()
959 …const float t = tcu::dot((pr - pa).asFloat(), (pb - pa).asFloat()) / tcu::lengthSquared(p… in rasterize()
/third_party/vk-gl-cts/framework/common/
DtcuVectorUtil.hpp136 inline T lengthSquared (const Vector<T, Size>& a) in lengthSquared() function
147 return ::sqrt(lengthSquared(a)); in length()
153 return deFloatSqrt(lengthSquared(a)); in length()
DtcuRasterizationVerifier.cpp123 if (crossProduct * crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(line)) in pixelNearLineSegment()
422 const float divisor = tcu::lengthSquared(pb - pa); in calcLineInterpolationWeights()
2435 …if (crossProduct < 0 && crossProduct*crossProduct > maxPixelDistanceSquared * tcu::lengthSquared(e… in calculateTriangleCoverage()
2437 …if (crossProduct < 0 || crossProduct*crossProduct < maxPixelDistanceSquared * tcu::lengthSquared(e… in calculateTriangleCoverage()
/third_party/skia/modules/canvaskit/
Dmatrix.js193 CanvasKit.Vector.lengthSquared = function(v) { function
197 return Math.sqrt(CanvasKit.Vector.lengthSquared(v));
Dexterns.js725 lengthSquared: function() {}, method
/third_party/skia/samplecode/
DSample3D.cpp37 SkScalar len2 = v.lengthSquared(); in computeUnitV3()
/third_party/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts935 const n4 = vec.lengthSquared(a); // $ExpectType number
/third_party/skia/site/docs/user/modules/
Dcanvaskit.md707 let len2 = CanvasKit.Vector.lengthSquared(v);

12