/dports/lang/chibi-scheme/chibi-scheme-0.10/tests/snow/repo3/pythagoras/ |
H A D | hypotenuse-test.sch | 1 (import (scheme base) (scheme process-context) (pythagoras hypotenuse)) 9 (test 5.0 (hypotenuse 3.0 4.0)) 10 (test 13.0 (hypotenuse 5.0 12.0)) 11 (test 25.0 (hypotenuse 7.0 24.0)) 12 (test 17.0 (hypotenuse 8.0 15.0)) 13 (test 41.0 (hypotenuse 9.0 40.0)) 14 (test 61.0 (hypotenuse 11.0 60.0))
|
H A D | hypotenuse.sch | 1 ;;> Utility to determine the length of the hypotenuse of a right 4 (define-library (pythagoras hypotenuse) 5 (export hypotenuse) 6 (include-shared "hypotenuse"))
|
/dports/devel/z88dk/z88dk/libsrc/_DEVELOPMENT/math/float/math32/z80/ |
H A D | f32_fshypot.asm | 9 ; m32_hypot - z80, z180, z80n hypotenuse evaluation 12 ; The hypotenuse is the longest side of a right-angled triangle. 13 ; The hypotf() function is used to find hypotenuse when 35 ; evaluation of a hypotenuse function 60 ; evaluation of a hypotenuse function
|
/dports/devel/z88dk/z88dk/libsrc/_DEVELOPMENT/math/float/am9511/z80/ |
H A D | am32_hypot.asm | 11 ; asm_am9511_hypot - z80, z180, z80n hypotenuse evaluation 14 ; The hypotenuse is the longest side of a right-angled triangle. 15 ; The hypotf() function is used to find hypotenuse when 42 ; evaluation of a hypotenuse function 81 ; evaluation of a hypotenuse function
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/hud/ |
H A D | hudlock.cpp | 1095 double hypotenuse; in hud_calculate_lock_start_pos() local 1109 hypotenuse = _hypot(delta_y, delta_x); in hud_calculate_lock_start_pos() 1111 if (hypotenuse >= Lock_start_dist) { in hud_calculate_lock_start_pos() 1180 double hypotenuse, delta_x, delta_y; in hud_calculate_lock_slot_position() local 1211 hypotenuse = 0; in hud_calculate_lock_slot_position() 1326 hypotenuse = 0; in hud_calculate_lock_slot_position() 1728 double hypotenuse, delta_x, delta_y; in hud_calculate_lock_position() local 1758 hypotenuse = 0; in hud_calculate_lock_position() 1889 hypotenuse = 0; in hud_calculate_lock_position() 1942 double hypotenuse; in hud_calculate_lock_start_pos() local [all …]
|
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/hud/ |
H A D | hudlock.cpp | 750 double hypotenuse, delta_x, delta_y; in hud_calculate_lock_position() local 780 hypotenuse = 0; in hud_calculate_lock_position() 783 hypotenuse = _hypot(delta_y, delta_x); in hud_calculate_lock_position() 911 hypotenuse = 0; in hud_calculate_lock_position() 914 hypotenuse = _hypot(delta_y, delta_x); in hud_calculate_lock_position() 924 if ((delta_x != 0) && (hypotenuse != 0)) in hud_calculate_lock_position() 927 if ((delta_y != 0) && (hypotenuse != 0)) in hud_calculate_lock_position() 964 double hypotenuse; in hud_calculate_lock_start_pos() local 978 hypotenuse = _hypot(delta_y, delta_x); in hud_calculate_lock_start_pos() 980 if (hypotenuse >= Lock_start_dist) { in hud_calculate_lock_start_pos() [all …]
|
/dports/audio/praat/praat-6.2.03/test/sys/ |
H A D | localVariables2.praat | 8 procedure hypotenuse (.x, .y) 16 @hypotenuse (3, 4) 17 assert hypotenuse.result = 5
|
H A D | localVariables.praat | 8 procedure hypotenuse .x .y 16 call hypotenuse 3 4 17 assert hypotenuse.result = 5
|
/dports/games/tecnoballz/tecnoballz-0.93.1/src/ |
H A D | controller_magnetic_eyes.cc | 99 hypotenuse = sprites_list[0]->collision_width - res * 2; in create_eyes_list() 100 center_x = hypotenuse / 2; in create_eyes_list() 102 hypotenuse = hypotenuse * hypotenuse; in create_eyes_list()
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/tests/ui/ |
H A D | floating_point_hypot.stderr | 1 error: hypotenuse can be computed more accurately 9 error: hypotenuse can be computed more accurately 15 error: hypotenuse can be computed more accurately
|
/dports/games/xpilot/xpilot-4.5.5/src/server/ |
H A D | play.c | 184 if (min_speed * max_life > World.hypotenuse) in Make_debris() 185 min_speed = World.hypotenuse / max_life; in Make_debris() 186 if (max_speed * min_life > World.hypotenuse) in Make_debris() 187 max_speed = World.hypotenuse / min_life; in Make_debris() 236 if (life * speed > World.hypotenuse) { in Make_debris() 237 life = (long)(World.hypotenuse / speed); in Make_debris()
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/radar/ |
H A D | radarngon.cpp | 8 float hypotenuse; in clampBlip() local 10 hypotenuse = hypotf(blip_instance->xyz.x, blip_instance->xyz.y); in clampBlip() 13 if (hypotenuse >= r_min) { in clampBlip()
|
H A D | radar.cpp | 366 float hypotenuse; in clampBlip() local 373 hypotenuse = hypotf(b->xyz.x, b->xyz.y); in clampBlip() 376 if (hypotenuse > max_radius) { in clampBlip() 377 vm_vec_scale2(b, max_radius, hypotenuse); in clampBlip()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/mads/ |
H A D | rails.cpp | 189 int flags, hypotenuse; in setNodePosition() local 204 hypotenuse = (int)sqrt((double)(xDiff * xDiff + yDiff * yDiff)); in setNodePosition() 206 if (hypotenuse >= 0x3FFF) in setNodePosition() 208 hypotenuse = 0x3FFF; in setNodePosition() 210 entry = hypotenuse | flags; in setNodePosition()
|
/dports/games/scummvm/scummvm-2.5.1/engines/mads/ |
H A D | rails.cpp | 189 int flags, hypotenuse; in setNodePosition() local 204 hypotenuse = (int)sqrt((double)(xDiff * xDiff + yDiff * yDiff)); in setNodePosition() 206 if (hypotenuse >= 0x3FFF) in setNodePosition() 208 hypotenuse = 0x3FFF; in setNodePosition() 210 entry = hypotenuse | flags; in setNodePosition()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/ui/views/location_bar/ |
H A D | keyword_hint_view.cc | 159 const float hypotenuse = radius - kMinDistanceFromBorder; in GetInsets() local 163 DCHECK_GE(hypotenuse, extent) in GetInsets() 166 std::sqrt(hypotenuse * hypotenuse - extent * extent); in GetInsets()
|
/dports/graphics/opencv/opencv-4.5.3/samples/tapi/ |
H A D | pyrlk_optical_flow.cpp | 48 … double hypotenuse = sqrt( (double)(p.y - q.y)*(p.y - q.y) + (double)(p.x - q.x)*(p.x - q.x) ); in drawArrows() local 50 if (hypotenuse < 1.0) in drawArrows() 54 q.x = (int) (p.x - 3 * hypotenuse * cos(angle)); in drawArrows() 55 q.y = (int) (p.y - 3 * hypotenuse * sin(angle)); in drawArrows()
|
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/radar/ |
H A D | radar.cpp | 393 float hypotenuse; in plotBlip() local 396 hypotenuse = (float) _hypot(new_x_dist, new_y_dist); in plotBlip() 399 if (hypotenuse >= max_radius) in plotBlip() 401 clipped_x_dist = max_radius * (new_x_dist / hypotenuse); in plotBlip() 402 clipped_y_dist = max_radius * (new_y_dist / hypotenuse); in plotBlip()
|
/dports/graphics/opencv/opencv-4.5.3/samples/python/tutorial_code/ml/introduction_to_pca/ |
H A D | introduction_to_pca.py | 13 hypotenuse = sqrt((p[1] - q[1]) * (p[1] - q[1]) + (p[0] - q[0]) * (p[0] - q[0])) 16 q[0] = p[0] - scale * hypotenuse * cos(angle) 17 q[1] = p[1] - scale * hypotenuse * sin(angle)
|
/dports/graphics/opencv/opencv-4.5.3/samples/cpp/tutorial_code/ml/introduction_to_pca/ |
H A D | introduction_to_pca.cpp | 26 double hypotenuse = sqrt( (double) (p.y - q.y) * (p.y - q.y) + (p.x - q.x) * (p.x - q.x)); in drawAxis() local 29 q.x = (int) (p.x - scale * hypotenuse * cos(angle)); in drawAxis() 30 q.y = (int) (p.y - scale * hypotenuse * sin(angle)); in drawAxis()
|
/dports/misc/valentina/valentina-5b7e98bf48a86e3c444423a9f03533440a39aad9/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/ |
H A D | vtooltriangle.cpp | 204 QLineF hypotenuse(firstPoint, secondPoint); in FindPoint() local 207 QLineF::IntersectType intersect = Intersects(axis, hypotenuse, &startPoint); in FindPoint() 213 if (VFuzzyComparePossibleNulls(axis.angle(), hypotenuse.angle()) in FindPoint() 214 || VFuzzyComparePossibleNulls(qAbs(axis.angle() - hypotenuse.angle()), 180)) in FindPoint() 226 qint64 c = qFloor(hypotenuse.length()); in FindPoint()
|
/dports/misc/visp/visp-3.4.0/3rdparty/apriltag/ |
H A D | apriltag_pose.cpp | 281 double hypotenuse = sqrt(r31*r31 + r32*r32); in fix_pose_ambiguities() local 282 if (hypotenuse < 1e-100) { in fix_pose_ambiguities() 285 hypotenuse = 1; in fix_pose_ambiguities() 287 double data_R_z[] = {r31/hypotenuse, -r32/hypotenuse, 0, in fix_pose_ambiguities() 288 r32/hypotenuse, r31/hypotenuse, 0, in fix_pose_ambiguities()
|
/dports/x11-toolkits/qt5-virtualkeyboard/kde-qtvirtualkeyboard-5.15.2p4/src/plugins/lipi-toolkit/3rdparty/lipi-toolkit/src/reco/shaperec/featureextractor/npen/ |
H A D | NPenShapeFeatureExtractor.cpp | 332 float hypotenuse=0; in extractFeatures() local 366 hypotenuse = sqrt((deltaX*deltaX)+(deltaY*deltaY)); in extractFeatures() 368 if(hypotenuse < EPS) in extractFeatures() 375 cosalpha = deltaX / hypotenuse; in extractFeatures() 376 sinalpha = deltaY / hypotenuse; in extractFeatures()
|
/dports/graphics/opencv/opencv-4.5.3/samples/java/tutorial_code/ml/introduction_to_pca/ |
H A D | IntroductionToPCADemo.java | 21 double hypotenuse = Math.sqrt((p.y - q.y) * (p.y - q.y) + (p.x - q.x) * (p.x - q.x)); in drawAxis() local 24 q.x = (int) (p.x - scale * hypotenuse * Math.cos(angle)); in drawAxis() 25 q.y = (int) (p.y - scale * hypotenuse * Math.sin(angle)); in drawAxis()
|
/dports/devel/flex-sdk/flex-sdk-4.6.0.23201/frameworks/projects/framework/src/mx/graphics/ |
H A D | LinearGradient.as | 253 // Get the hypotenuse of the largest triangle that can fit in the bounds 254 …var hypotenuse:Number = Math.sqrt(targetBounds.width * targetBounds.width + targetBounds.height * … 256 var hypotenuseAngle:Number = Math.acos(targetBounds.width / hypotenuse) * 180 / Math.PI; 258 // If the angle is larger than the hypotenuse angle, then use the height 266 // Solve for the hypotenuse given an adjacent side and an angle.
|