Home
last modified time | relevance | path

Searched refs:yDist (Results 1 – 25 of 91) sorted by relevance

1234

/dports/audio/libnoise/noise/src/module/
H A Dvoronoi.cpp68 double yDist = yPos - y; in GetValue() local
70 double dist = xDist * xDist + yDist * yDist + zDist * zDist; in GetValue()
88 double yDist = yCandidate - y; in GetValue() local
90 value = (sqrt (xDist * xDist + yDist * yDist + zDist * zDist) in GetValue()
/dports/games/maelstrom/Maelstrom-3.0.6/netlogic/
H A Dmake.cpp118 int xDist, yDist; in MakeNova() local
124 gPlayers[i]->GetPos(&xDist, &yDist); in MakeNova()
126 yDist = abs(yDist-y); in MakeNova()
129 (yDist < (SCALE_FACTOR * min_bad_distance)) ) in MakeNova()
249 int xDist, yDist; in MakeGravity() local
255 gPlayers[i]->GetPos(&xDist, &yDist); in MakeGravity()
257 yDist = abs(yDist-y); in MakeGravity()
260 (yDist < (SCALE_FACTOR * min_bad_distance)) ) in MakeGravity()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/point-to-point-layout/model/
H A Dpoint-to-point-star.cc141 double yDist; in BoundingBox() local
152 yDist = lry - uly; in BoundingBox()
156 yDist = uly - lry; in BoundingBox()
167 Vector hubVec (ulx + xDist/2.0, uly + yDist/2.0, 0); in BoundingBox()
171 if (xDist > yDist) in BoundingBox()
173 spokeDist = yDist/4.0; in BoundingBox()
H A Dpoint-to-point-grid.cc190 double yDist; in BoundingBox() local
201 yDist = lry - uly; in BoundingBox()
205 yDist = uly - lry; in BoundingBox()
208 double yAdder = yDist / m_ySize; in BoundingBox()
209 double yLoc = yDist / 2; in BoundingBox()
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/micro/org/openjdk/bench/jdk/incubator/foreign/points/support/
H A DlibPoint.c36 int yDist = abs(p1.y - p2.y); in distance() local
37 return sqrt((xDist * xDist) + (yDist * yDist)); in distance()
H A DlibJNIPoint.c32 int yDist = abs(p1.y - p2.y); in distance() local
33 return sqrt((xDist * xDist) + (yDist * yDist)); in distance()
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/micro/org/openjdk/bench/jdk/incubator/foreign/points/support/
H A DlibPoint.c36 int yDist = abs(p1.y - p2.y); in distance() local
37 return sqrt((xDist * xDist) + (yDist * yDist)); in distance()
H A DlibJNIPoint.c32 int yDist = abs(p1.y - p2.y); in distance() local
33 return sqrt((xDist * xDist) + (yDist * yDist)); in distance()
/dports/graphics/embree/embree-3.13.2/tutorials/convert/
H A Ddistribution2d.cpp37 yDist.init(fy.data(), height); in init()
43 float sy = yDist.sample(u.y); in sample()
53 return xDists[idx].pdf(p.x) * yDist.pdf(p.y); in pdf()
/dports/math/vtk9/VTK-9.1.0/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/worklet/cosmotools/
H A DComputePotentialNxN.h99 T yDist = yLoc.Get(i) - yLoc.Get(j); in operator() local
101 T r = vtkm::Sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
H A DComputePotentialOnCandidates.h99 T yDist = yLoc.Get(i) - yLoc.Get(j); in operator() local
101 T r = vtkm::Sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
H A DComputePotentialMxN.h102 T yDist = yLoc.Get(iPartId) - yLoc.Get(j); in operator() local
104 T r = sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
H A DComputePotential.h109 T yDist = yLoc.Get(iId) - yLoc.Get(jId); in operator() local
111 T r = vtkm::Sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
/dports/graphics/qgis/qgis-3.22.3/src/core/mesh/
H A Dqgsmeshvectorrenderer.cpp160 double yDist = 0.0; in calcVectorLineEnd() local
174 yDist = sinAlpha * L; in calcVectorLineEnd()
181 yDist = scaleFactor * yVal; in calcVectorLineEnd()
190 yDist = sinAlpha * fixedShaftLength; in calcVectorLineEnd()
196 yDist *= -1.0; in calcVectorLineEnd()
198 if ( std::abs( xDist ) < 1 && std::abs( yDist ) < 1 ) in calcVectorLineEnd()
203 lineStart.y() + yDist ); in calcVectorLineEnd()
205 vectorLength = sqrt( xDist * xDist + yDist * yDist ); in calcVectorLineEnd()
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/mesh/
H A Dqgsmeshvectorrenderer.cpp160 double yDist = 0.0; in calcVectorLineEnd() local
174 yDist = sinAlpha * L; in calcVectorLineEnd()
181 yDist = scaleFactor * yVal; in calcVectorLineEnd()
190 yDist = sinAlpha * fixedShaftLength; in calcVectorLineEnd()
196 yDist *= -1.0; in calcVectorLineEnd()
198 if ( std::abs( xDist ) < 1 && std::abs( yDist ) < 1 ) in calcVectorLineEnd()
203 lineStart.y() + yDist ); in calcVectorLineEnd()
205 vectorLength = sqrt( xDist * xDist + yDist * yDist ); in calcVectorLineEnd()
/dports/math/vtk8/VTK-8.2.0/ThirdParty/vtkm/vtk-m/vtkm/worklet/cosmotools/
H A DComputePotentialNxN.h111 T yDist = yLoc.Get(i) - yLoc.Get(j); in operator() local
113 T r = vtkm::Sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
H A DComputePotentialOnCandidates.h111 T yDist = yLoc.Get(i) - yLoc.Get(j); in operator() local
113 T r = vtkm::Sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
H A DComputePotentialMxN.h114 T yDist = yLoc.Get(iPartId) - yLoc.Get(j); in operator() local
116 T r = sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
H A DComputePotential.h122 T yDist = yLoc.Get(iId) - yLoc.Get(jId); in operator() local
124 T r = vtkm::Sqrt((xDist * xDist) + (yDist * yDist) + (zDist * zDist)); in operator()
/dports/converters/wkhtmltopdf/qt-5db36ec/src/3rdparty/webkit/Source/WebCore/css/
H A DCSSGradientValue.cpp787 float yDist = min(secondPoint.y(), size.height() - secondPoint.y()); in createGradient() local
789 float smaller = min(xDist, yDist); in createGradient()
791 yDist = smaller; in createGradient()
794 aspectRatio = xDist / yDist; in createGradient()
799 float yDist = max(secondPoint.y(), size.height() - secondPoint.y()); in createGradient() local
801 float larger = max(xDist, yDist); in createGradient()
803 yDist = larger; in createGradient()
806 aspectRatio = xDist / yDist; in createGradient()
818 float yDist = min(secondPoint.y(), size.height() - secondPoint.y()); in createGradient() local
821 aspectRatio = xDist / yDist; in createGradient()
[all …]
/dports/net/mpich2/mpich2-1.5/src/mpe2/src/slog2sdk/src/base/topology/
H A DPreviewEvent.java172 double xDist, yDist;
175 yDist = (pt_y - yCorner)/yHalfHeight - 1.0;
177 return (xDist*xDist + yDist*yDist) <= 1.0;
/dports/graphics/heimer/Heimer-3.0.0/src/unit_tests/layout_optimizer_test/
H A Dlayout_optimizer_test.cpp64 std::uniform_real_distribution<double> yDist { -1000, 1000 }; in testMultipleNodes_NoEdges_ShouldSpread() local
70 node->setPos({ xDist(engine), yDist(engine) }); in testMultipleNodes_NoEdges_ShouldSpread()
98 std::uniform_real_distribution<double> yDist { -1000, 1000 }; in testMultipleNodes_ShouldReduceCost() local
104 node->setPos({ xDist(engine), yDist(engine) }); in testMultipleNodes_ShouldReduceCost()
/dports/www/chromium-legacy/chromium-88.0.4324.182/base/android/java/src/org/chromium/base/
H A DMathUtils.java182 float yDist = y2 - y1; in distance() local
183 return (float) Math.sqrt(xDist * xDist + yDist * yDist); in distance()
/dports/net-im/tg_owt/tg_owt-d578c76/src/base/android/java/src/org/chromium/base/
H A DMathUtils.java182 float yDist = y2 - y1; in distance() local
183 return (float) Math.sqrt(xDist * xDist + yDist * yDist); in distance()
/dports/math/ogdf/OGDF/src/ogdf/basic/
H A DNearestRectangleFinder.cpp280 double yDist = 0.0; in findSimple() local
282 yDist = bottom - p.m_y; in findSimple()
284 yDist = p.m_y - top; in findSimple()
285 OGDF_ASSERT(yDist >= 0); in findSimple()
287 double dist = xDist + yDist; in findSimple()

1234