{"id":49986,"date":"2026-11-30T14:53:36","date_gmt":"2026-11-30T06:53:36","guid":{"rendered":"https:\/\/www.qiusir.com\/?p=49986"},"modified":"2026-11-30T21:19:09","modified_gmt":"2026-11-30T13:19:09","slug":"qiutopia%e7%bd%91%e7%90%83%e5%8f%91%e7%90%83","status":"publish","type":"post","link":"https:\/\/www.qiusir.com\/?p=49986","title":{"rendered":"qiutopIA:\u7f51\u7403\u53d1\u7403"},"content":{"rendered":"\n<div id=\"wp-tennis-3d-textbook\" style=\"max-width:960px;margin:16px auto;background:#fff;color:#000;border:1.5px solid #000;font-family:'Times New Roman',Georgia,serif;box-sizing:border-box;line-height:1.4;display:flex;flex-direction:column;justify-content:space-between;\">\n  <div data-role=\"wrap\" style=\"width:100%;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden;\">\n    <canvas data-role=\"cv\" width=\"940\" height=\"650\" style=\"width:100%;height:auto;display:block;touch-action:none;cursor:grab;\"><\/canvas>\n  <\/div>\n  <div style=\"flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:18px;padding:8px 14px;border-top:1px solid #000;font-size:12px;width:100%;box-sizing:border-box;background:#fff;\">\n    <label style=\"display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;\">\n      <span style=\"white-space:nowrap;\"><i>H<\/i> = <strong data-role=\"vh\">2.6<\/strong> m<\/span>\n      <input type=\"range\" data-role=\"sh\" min=\"1.4\" max=\"3.4\" step=\"0.1\" value=\"2.6\" style=\"flex:1;width:100%;min-width:40px;accent-color:#000;cursor:pointer;\">\n    <\/label>\n    <label style=\"display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;\">\n      <span style=\"white-space:nowrap;\"><i>z<\/i><sub>0<\/sub> = <strong data-role=\"vz\">1.5<\/strong> m<\/span>\n      <input type=\"range\" data-role=\"sz\" min=\"0.0\" max=\"4.1\" step=\"0.1\" value=\"1.5\" style=\"flex:1;width:100%;min-width:40px;accent-color:#000;cursor:pointer;\">\n    <\/label>\n    <label style=\"display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;\">\n      <span style=\"white-space:nowrap;\"><i>v<\/i><sub>0<\/sub> = <strong data-role=\"vv\">24.0<\/strong> m\/s<\/span>\n      <input type=\"range\" data-role=\"sv\" min=\"15.0\" max=\"35.0\" step=\"0.5\" value=\"24.0\" style=\"flex:1;width:100%;min-width:40px;accent-color:#000;cursor:pointer;\">\n    <\/label>\n  <\/div>\n  <div style=\"flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:6px 14px;border-top:1px solid #ccc;font-size:12px;width:100%;box-sizing:border-box;background:#fff;\">\n    <button type=\"button\" data-role=\"rst\" style=\"border:1px solid #000;background:#fff;color:#000;padding:2px 10px;font-family:inherit;font-size:12px;cursor:pointer;\">\u91cd\u7f6e\u89c6\u89d2<\/button>\n    <button type=\"button\" data-role=\"fs\" style=\"border:1px solid #000;background:#fff;color:#000;padding:2px 10px;font-family:inherit;font-size:12px;cursor:pointer;\">\u5168\u5c4f\u663e\u793a<\/button>\n  <\/div>\n  <script>\n    (function () {\n      var root = document.getElementById('wp-tennis-3d-textbook');\n      if (!root) { return; }\n      var q = function (r) { return root.querySelector('[data-role=\"' + r + '\"]'); };\n      var cv = q('cv'), ctx = cv.getContext('2d');\n      var sh = q('sh'), sz = q('sz'), sv = q('sv'), btnFs = q('fs');\n      var vh = q('vh'), vz = q('vz'), vv = q('vv');\n      var L1 = 12, LT = 24, L2 = 6, WS = 4.1, WD = 5.5, HN = 0.9, G = 10;\n      var st = { H: 2.6, z0: 1.5, v0: 24.0, yaw: -0.45, pitch: 0.45, zoom: 1.0, drag: false, lx: 0, ly: 0, pfs: false };\n      var B3 = { x: 16, y: 14, w: 908, h: 380 }, BS = { x: 16, y: 406, w: 446, h: 230 }, BT = { x: 478, y: 406, w: 446, h: 230 };\n      function p3(x, y, z) {\n        var dx = x - L1, dz = z + 0.15;\n        var cy = Math.cos(st.yaw), sy = Math.sin(st.yaw), cp = Math.cos(st.pitch), sp = Math.sin(st.pitch);\n        var x1 = dx * cy - dz * sy, z1 = dx * sy + dz * cy;\n        var y2 = y * cp - z1 * sp, z2 = y * sp + z1 * cp;\n        var sc = 24.5 * st.zoom * (78 \/ (66 - z2 * 0.38));\n        return { x: B3.x + B3.w * 0.47 + x1 * sc, y: B3.y + B3.h * 0.50 - y2 * sc };\n      }\n      function dot(x, y, r, ring) {\n        ctx.beginPath(); ctx.arc(x, y, r, 0, 6.2832);\n        ctx.fillStyle = ring ? '#fff' : '#000'; ctx.fill();\n        if (ring) { ctx.lineWidth = 1.4; ctx.strokeStyle = '#000'; ctx.stroke(); }\n      }\n      function head(x1, y1, x2, y2, s) {\n        var a = Math.atan2(y2 - y1, x2 - x1);\n        ctx.beginPath(); ctx.moveTo(x2, y2);\n        ctx.lineTo(x2 - s * Math.cos(a - 0.45), y2 - s * Math.sin(a - 0.45));\n        ctx.lineTo(x2 - s * Math.cos(a + 0.45), y2 - s * Math.sin(a + 0.45));\n        ctx.closePath(); ctx.fillStyle = '#000'; ctx.fill();\n      }\n      function vec(x1, y1, x2, y2, txt, ox, oy, lw) {\n        ctx.beginPath(); ctx.moveTo(x1, y1); ctx.lineTo(x2, y2);\n        ctx.strokeStyle = '#000'; ctx.lineWidth = lw ? lw : 1.7; ctx.stroke();\n        head(x1, y1, x2, y2, 6);\n        if (txt) {\n          ctx.font = 'italic bold 11.5px \"Times New Roman\",serif'; ctx.fillStyle = '#000';\n          ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic'; ctx.fillText(txt, x2 + ox, y2 + oy);\n        }\n      }\n      function dim2(x1, y1, x2, y2, txt, ox, oy) {\n        ctx.beginPath(); ctx.moveTo(x1, y1); ctx.lineTo(x2, y2);\n        ctx.strokeStyle = '#000'; ctx.lineWidth = 0.75; ctx.stroke();\n        head(x2, y2, x1, y1, 4); head(x1, y1, x2, y2, 4);\n        ctx.font = '10.5px \"Times New Roman\",serif'; ctx.fillStyle = '#000';\n        ctx.textAlign = 'center'; ctx.textBaseline = 'middle';\n        ctx.fillText(txt, (x1 + x2) * 0.5 + ox, (y1 + y2) * 0.5 + oy);\n      }\n      function dim3(a, b, d, len, txt, ox, oy) {\n        var sA = p3(a[0], a[1], a[2]), sB = p3(b[0], b[1], b[2]);\n        var eA = p3(a[0] + d[0] * len, a[1] + d[1] * len, a[2] + d[2] * len);\n        var eB = p3(b[0] + d[0] * len, b[1] + d[1] * len, b[2] + d[2] * len);\n        ctx.strokeStyle = '#555'; ctx.lineWidth = 0.65;\n        ctx.beginPath(); ctx.moveTo(sA.x, sA.y); ctx.lineTo(eA.x, eA.y); ctx.moveTo(sB.x, sB.y); ctx.lineTo(eB.x, eB.y); ctx.stroke();\n        dim2(eA.x, eA.y, eB.x, eB.y, txt, ox, oy);\n      }\n      function quad3(x1, z1, x2, z2, col) {\n        var c = [p3(x1, 0, z1), p3(x2, 0, z1), p3(x2, 0, z2), p3(x1, 0, z2)];\n        ctx.beginPath(); ctx.moveTo(c[0].x, c[0].y);\n        for (var i = 1; 4 > i; i++) { ctx.lineTo(c[i].x, c[i].y); }\n        ctx.closePath(); ctx.fillStyle = col; ctx.fill();\n      }\n      function ln3(a, b, col, lw, dash) {\n        var s1 = p3(a[0], a[1], a[2]), s2 = p3(b[0], b[1], b[2]);\n        ctx.save(); if (dash) { ctx.setLineDash(dash); }\n        ctx.beginPath(); ctx.moveTo(s1.x, s1.y); ctx.lineTo(s2.x, s2.y);\n        ctx.strokeStyle = col; ctx.lineWidth = lw; ctx.stroke(); ctx.restore();\n      }\n      function arc3(x0, z0, x1, z1, col, lw, dash) {\n        ctx.save(); if (dash) { ctx.setLineDash(dash); }\n        ctx.beginPath();\n        for (var i = 0; 45 >= i; i++) {\n          var u = i \/ 45, pt = p3(x0 + u * (x1 - x0), st.H * (1 - u * u), z0 + u * (z1 - z0));\n          if (i === 0) { ctx.moveTo(pt.x, pt.y); } else { ctx.lineTo(pt.x, pt.y); }\n        }\n        ctx.strokeStyle = col; ctx.lineWidth = lw; ctx.stroke(); ctx.restore();\n      }\n      function shotData() {\n        var dx = L1 + L2 * 0.5, dz = -WS * 0.5 - st.z0, dist = Math.hypot(dx, dz);\n        var ca = dx \/ dist, sa = dz \/ dist, dLand = st.v0 * Math.sqrt(2 * st.H \/ G);\n        var dNet = L1 \/ ca, yNet = st.H - 0.5 * G * Math.pow(dNet \/ st.v0, 2);\n        var hit = HN > yNet, dStop = hit ? dNet : dLand;\n        return { ca: ca, sa: sa, dStop: dStop, yStop: hit ? Math.max(0, yNet) : 0, xStop: dStop * ca, zStop: st.z0 + dStop * sa };\n      }\n      function draw3D() {\n        ctx.strokeStyle = '#000'; ctx.lineWidth = 1.2; ctx.strokeRect(B3.x, B3.y, B3.w, B3.h);\n        ctx.save(); ctx.beginPath(); ctx.rect(B3.x + 1, B3.y + 1, B3.w - 2, B3.h - 2); ctx.clip();\n        var xL = L1 - L2, xR = L1 + L2;\n        quad3(0, -WD, LT, -WS, '#efefef'); quad3(0, WS, LT, WD, '#efefef');\n        quad3(0, -WS, xL, WS, '#f8f8f8'); quad3(xR, -WS, LT, WS, '#f8f8f8');\n        quad3(xL, -WS, L1, 0, '#fff'); quad3(xL, 0, L1, WS, '#eaeaea');\n        quad3(L1, -WS, xR, 0, '#dedede'); quad3(L1, 0, xR, WS, '#fff');\n        ln3([0, 0, -WD], [LT, 0, -WD], '#000', 1.1); ln3([0, 0, WD], [LT, 0, WD], '#000', 1.1);\n        ln3([0, 0, -WD], [0, 0, WD], '#000', 1.2); ln3([LT, 0, -WD], [LT, 0, WD], '#000', 1.2);\n        ln3([0, 0, -WS], [LT, 0, -WS], '#000', 0.9); ln3([0, 0, WS], [LT, 0, WS], '#000', 0.9);\n        ln3([xL, 0, -WS], [xL, 0, WS], '#000', 0.9); ln3([xR, 0, -WS], [xR, 0, WS], '#000', 0.9);\n        ln3([xL, 0, 0], [xR, 0, 0], '#000', 0.9); ln3([0, 0, 0], [0.45, 0, 0], '#000', 1.2);\n        ln3([LT - 0.45, 0, 0], [LT, 0, 0], '#000', 1.2); ln3([-1.2, 0, 0], [LT + 1.2, 0, 0], '#999', 0.8, [4, 4]);\n        var segs = [0, xL, L1, xR, LT];\n        for (var i = 0; 4 > i; i++) { dim3([segs[i], 0, WD], [segs[i + 1], 0, WD], [0, 0, 1], 0.9, '6 m', 0, 10); }\n        dim3([0, 0, WD], [L1, 0, WD], [0, 0, 1], 2.0, 'L\u2081 = 12 m', 0, 10);\n        dim3([L1, 0, WD], [LT, 0, WD], [0, 0, 1], 2.0, '12 m', 0, 10);\n        dim3([LT, 0, -WD], [LT, 0, -WS], [1, 0, 0], 0.9, '1.4 m', 20, -3);\n        dim3([LT, 0, -WS], [LT, 0, 0], [1, 0, 0], 0.9, '4.1 m', 20, -3);\n        dim3([LT, 0, 0], [LT, 0, WS], [1, 0, 0], 0.9, '4.1 m', 20, -3);\n        dim3([LT, 0, WS], [LT, 0, WD], [1, 0, 0], 0.9, '1.4 m', 20, -3);\n        dim3([LT, 0, -WS], [LT, 0, WS], [1, 0, 0], 2.6, '8.2 m', 20, -3);\n        var nzM = WD + 0.45, nBL = p3(L1, 0, -nzM), nBR = p3(L1, 0, nzM), nTR = p3(L1, HN, nzM), nTL = p3(L1, HN, -nzM);\n        ctx.beginPath(); ctx.moveTo(nBL.x, nBL.y); ctx.lineTo(nBR.x, nBR.y); ctx.lineTo(nTR.x, nTR.y); ctx.lineTo(nTL.x, nTL.y);\n        ctx.closePath(); ctx.fillStyle = 'rgba(255,255,255,0.65)'; ctx.fill();\n        for (var nz = -nzM; nzM + 0.01 >= nz; nz += 0.5) { ln3([L1, 0, nz], [L1, HN, nz], '#aaa', 0.45); }\n        ln3([L1, HN * 0.5, -nzM], [L1, HN * 0.5, nzM], '#aaa', 0.45);\n        ln3([L1, 0, -nzM], [L1, HN + 0.12, -nzM], '#000', 1.6); ln3([L1, 0, nzM], [L1, HN + 0.12, nzM], '#000', 1.6);\n        ln3([L1, HN, -nzM], [L1, HN, nzM], '#000', 1.5); ln3([L1, 0, -nzM], [L1, 0, nzM], '#000', 0.9);\n        dim3([L1, 0, -nzM], [L1, HN, -nzM], [0, 0, -1], 0.85, 'h = 0.9 m', -28, 0);\n        var kR = Math.sqrt(st.H \/ (st.H - HN)), xLand = L1 * kR;\n        ln3([0, 0, st.z0], [0, st.H, st.z0], '#666', 0.9, [3, 3]);\n        var sF = p3(0, 0, st.z0), sH = p3(0, st.H, st.z0);\n        dot(sF.x, sF.y, 2.2); dot(sH.x, sH.y, 3.4);\n        for (var j = 0; 9 > j; j++) {\n          var zT = -WS + (j \/ 8) * WS;\n          arc3(0, st.z0, xLand, zT, '#777', 0.75);\n          ln3([0, 0, st.z0], [xLand, 0, zT], '#ccc', 0.5, [2, 2]);\n          var pN = p3(L1, HN, st.z0 + (zT - st.z0) \/ kR), pL = p3(xLand, 0, zT);\n          dot(pN.x, pN.y, 1.7); dot(pL.x, pL.y, 2.3);\n        }\n        ln3([xLand, 0, -WS], [xLand, 0, 0], '#000', 2.4);\n        ln3([0, 0, 0], [0, st.H, 0], '#000', 0.8, [2, 2]);\n        arc3(0, 0, xLand, 0, '#000', 1.4, [4, 3]);\n        dot(p3(0, st.H, 0).x, p3(0, st.H, 0).y, 2.8); dot(p3(xLand, 0, 0).x, p3(xLand, 0, 0).y, 2.8);\n        ln3([0, 0, WS], [0, st.H, WS], '#000', 0.8, [2, 2]);\n        arc3(0, WS, xR, -WS, '#000', 1.5);\n        ln3([0, 0, WS], [xR, 0, -WS], '#888', 0.7, [3, 3]);\n        dot(p3(0, st.H, WS).x, p3(0, st.H, WS).y, 3.0); dot(p3(xR, 0, -WS).x, p3(xR, 0, -WS).y, 3.0);\n        var sh = shotData();\n        ctx.beginPath();\n        for (var u = 0; 50 >= u; u++) {\n          var d = (u \/ 50) * sh.dStop, t = d \/ st.v0;\n          var pt = p3(d * sh.ca, st.H - 0.5 * G * t * t, st.z0 + d * sh.sa);\n          if (u === 0) { ctx.moveTo(pt.x, pt.y); } else { ctx.lineTo(pt.x, pt.y); }\n        }\n        ctx.strokeStyle = '#000'; ctx.lineWidth = 2.0; ctx.stroke();\n        var tip3 = p3(st.v0 * 0.14 * sh.ca, st.H, st.z0 + st.v0 * 0.14 * sh.sa);\n        vec(sH.x, sH.y, tip3.x, tip3.y, 'v\u2080', 4, -4, 1.8);\n        ln3([0, 0, st.z0], [sh.xStop, 0, sh.zStop], '#444', 0.9, [3, 2]);\n        var pSt = p3(sh.xStop, sh.yStop, sh.zStop);\n        dot(pSt.x, pSt.y, 3.5, true);\n        ctx.restore();\n      }\n      function drawSide() {\n        ctx.strokeStyle = '#000'; ctx.lineWidth = 1.2; ctx.strokeRect(BS.x, BS.y, BS.w, BS.h);\n        var sx = 15.6, sy = 44.0, x0 = BS.x + (BS.w - LT * sx) * 0.5 + 16, gY = BS.y + BS.h * 0.5 + 62;\n        var sL = x0 + (L1 - L2) * sx, nX = x0 + L1 * sx, sR = x0 + (L1 + L2) * sx, eR = x0 + LT * sx;\n        var tY = gY - st.H * sy, nY = gY - HN * sy;\n        ctx.fillStyle = '#f5f5f5'; ctx.fillRect(x0, gY - 3, sL - x0, 3); ctx.fillRect(sR, gY - 3, eR - sR, 3);\n        ctx.fillStyle = '#dcdcdc'; ctx.fillRect(nX, gY - 3, sR - nX, 3);\n        ctx.beginPath(); ctx.moveTo(x0 - 8, gY); ctx.lineTo(eR + 10, gY); ctx.strokeStyle = '#000'; ctx.lineWidth = 1; ctx.stroke();\n        ctx.save(); ctx.setLineDash([4, 4]); ctx.beginPath(); ctx.moveTo(x0, tY); ctx.lineTo(eR + 8, tY); ctx.strokeStyle = '#999'; ctx.lineWidth = 0.8; ctx.stroke(); ctx.restore();\n        dim2(x0 - 10, tY, x0 - 10, gY, 'H = ' + st.H.toFixed(1) + ' m', -25, 0);\n        ctx.beginPath(); ctx.moveTo(nX, gY); ctx.lineTo(nX, nY); ctx.strokeStyle = '#000'; ctx.lineWidth = 1.6; ctx.stroke();\n        dim2(nX + 8, nY, nX + 8, gY, 'h = 0.9 m', 25, -2);\n        var xs = [x0, sL, nX, sR, eR];\n        for (var i = 0; 4 > i; i++) { dim2(xs[i], gY + 12, xs[i + 1], gY + 12, '6 m', 0, 9); }\n        dim2(x0, gY + 29, eR, gY + 29, '24 m', 0, 8);\n        var xMin = L1 * Math.sqrt(st.H \/ (st.H - HN)), xMax = L1 + L2;\n        var envs = [xMin, xMax];\n        for (var k = 0; 2 > k; k++) {\n          ctx.save(); ctx.setLineDash([3, 3]); ctx.beginPath();\n          for (var s = 0; 45 >= s; s++) {\n            var u = s \/ 45, px = x0 + u * envs[k] * sx, py = gY - st.H * (1 - u * u) * sy;\n            if (s === 0) { ctx.moveTo(px, py); } else { ctx.lineTo(px, py); }\n          }\n          ctx.strokeStyle = '#666'; ctx.lineWidth = 0.9; ctx.stroke(); ctx.restore();\n        }\n        var yNet = st.H - 0.5 * G * Math.pow(L1 \/ st.v0, 2);\n        var xSt = HN > yNet ? L1 : st.v0 * Math.sqrt(2 * st.H \/ G), ySt = HN > yNet ? Math.max(0, yNet) : 0;\n        ctx.beginPath();\n        for (var s2 = 0; 50 >= s2; s2++) {\n          var xm = (s2 \/ 50) * xSt, tm = xm \/ st.v0, px2 = x0 + xm * sx, py2 = gY - (st.H - 0.5 * G * tm * tm) * sy;\n          if (s2 === 0) { ctx.moveTo(px2, py2); } else { ctx.lineTo(px2, py2); }\n        }\n        ctx.strokeStyle = '#000'; ctx.lineWidth = 1.8; ctx.stroke();\n        ctx.beginPath(); ctx.moveTo(x0 + xMin * sx, gY); ctx.lineTo(x0 + xMax * sx, gY); ctx.strokeStyle = '#000'; ctx.lineWidth = 2.4; ctx.stroke();\n        vec(x0, tY, x0 + st.v0 * 1.7, tY, 'v\u2080', 4, -5, 1.8);\n        dot(x0, tY, 3); dot(nX, nY, 2.4); dot(sL, gY, 2); dot(x0 + xMin * sx, gY, 2.4); dot(x0 + xMax * sx, gY, 2.4); dot(eR, gY, 2.2);\n        dot(x0 + xSt * sx, gY - ySt * sy, 3.2, true);\n      }\n      function drawTop() {\n        ctx.strokeStyle = '#000'; ctx.lineWidth = 1.2; ctx.strokeRect(BT.x, BT.y, BT.w, BT.h);\n        var sx = 16.8, sz = 16.2, x0 = BT.x + (BT.w - LT * sx) * 0.5, mZ = BT.y + BT.h * 0.5;\n        var sL = x0 + (L1 - L2) * sx, nX = x0 + L1 * sx, sR = x0 + (L1 + L2) * sx, eR = x0 + LT * sx;\n        var tD = mZ - WD * sz, bD = mZ + WD * sz, tS = mZ - WS * sz, bS = mZ + WS * sz;\n        ctx.fillStyle = '#efefef'; ctx.fillRect(x0, tD, LT * sx, (WD - WS) * sz); ctx.fillRect(x0, bS, LT * sx, (WD - WS) * sz);\n        ctx.fillStyle = '#f8f8f8'; ctx.fillRect(x0, tS, L2 * sx, 2 * WS * sz); ctx.fillRect(sR, tS, L2 * sx, 2 * WS * sz);\n        ctx.fillStyle = '#fff'; ctx.fillRect(sL, tS, L2 * sx, WS * sz); ctx.fillRect(nX, mZ, L2 * sx, WS * sz);\n        ctx.fillStyle = '#eaeaea'; ctx.fillRect(sL, mZ, L2 * sx, WS * sz);\n        ctx.fillStyle = '#dedede'; ctx.fillRect(nX, tS, L2 * sx, WS * sz);\n        ctx.strokeStyle = '#000'; ctx.lineWidth = 1; ctx.strokeRect(x0, tD, LT * sx, 2 * WD * sz);\n        ctx.beginPath();\n        ctx.moveTo(x0, tS); ctx.lineTo(eR, tS); ctx.moveTo(x0, bS); ctx.lineTo(eR, bS);\n        ctx.moveTo(sL, tS); ctx.lineTo(sL, bS); ctx.moveTo(sR, tS); ctx.lineTo(sR, bS);\n        ctx.moveTo(sL, mZ); ctx.lineTo(sR, mZ); ctx.moveTo(x0, mZ); ctx.lineTo(x0 + 5, mZ); ctx.moveTo(eR - 5, mZ); ctx.lineTo(eR, mZ);\n        ctx.stroke();\n        ctx.save(); ctx.setLineDash([4, 4]); ctx.beginPath(); ctx.moveTo(x0 - 10, mZ); ctx.lineTo(eR + 10, mZ); ctx.strokeStyle = '#999'; ctx.lineWidth = 0.8; ctx.stroke(); ctx.restore();\n        ctx.beginPath(); ctx.moveTo(nX, tD - 6); ctx.lineTo(nX, bD + 6); ctx.strokeStyle = '#000'; ctx.lineWidth = 1.6; ctx.stroke();\n        var srcZ = mZ + st.z0 * sz, kR = Math.sqrt(st.H \/ (st.H - HN)), lX = x0 + L1 * kR * sx;\n        for (var j = 0; 9 > j; j++) {\n          var tZ = mZ + (-WS + (j \/ 8) * WS) * sz;\n          ctx.beginPath(); ctx.moveTo(x0, srcZ); ctx.lineTo(lX, tZ); ctx.strokeStyle = '#777'; ctx.lineWidth = 0.7; ctx.stroke();\n          dot(nX, srcZ + (tZ - srcZ) \/ kR, 1.6); dot(lX, tZ, 2.1);\n        }\n        ctx.beginPath(); ctx.moveTo(lX, tS); ctx.lineTo(lX, mZ); ctx.strokeStyle = '#000'; ctx.lineWidth = 2.2; ctx.stroke();\n        var vMin = L1 * Math.sqrt(G \/ (2 * (st.H - HN)));\n        ctx.save(); ctx.setLineDash([4, 3]); ctx.beginPath(); ctx.moveTo(x0, mZ); ctx.lineTo(lX, mZ); ctx.strokeStyle = '#000'; ctx.lineWidth = 1.3; ctx.stroke(); ctx.restore();\n        dot(x0, mZ, 2.6); dot(lX, mZ, 2.6);\n        vec(x0, mZ, x0 + vMin * 1.75, mZ, 'v_min', 3, -5, 1.6);\n        var dMax = Math.hypot(L1 + L2, 2 * WS), vMax = dMax * Math.sqrt(G \/ (2 * st.H));\n        var cM = (L1 + L2) \/ dMax, sM = (-2 * WS) \/ dMax;\n        ctx.beginPath(); ctx.moveTo(x0, bS); ctx.lineTo(sR, tS); ctx.strokeStyle = '#000'; ctx.lineWidth = 1.4; ctx.stroke();\n        dot(x0, bS, 2.8); dot(sR, tS, 2.8);\n        vec(x0, bS, x0 + vMax * 1.75 * cM, bS + vMax * 1.75 * sM, 'v_max', 4, 10, 1.6);\n        var sh = shotData(), stX = x0 + sh.xStop * sx, stZ = mZ + sh.zStop * sz;\n        ctx.beginPath(); ctx.moveTo(x0, srcZ); ctx.lineTo(stX, stZ); ctx.strokeStyle = '#000'; ctx.lineWidth = 1.6; ctx.stroke();\n        vec(x0, srcZ, x0 + st.v0 * 1.75 * sh.ca, srcZ + st.v0 * 1.75 * sh.sa, 'v\u2080', 4, -4, 1.8);\n        dot(x0, srcZ, 3.2); dot(stX, stZ, 3.2, true);\n      }\n      function render() {\n        vh.textContent = st.H.toFixed(1); vz.textContent = st.z0.toFixed(1); vv.textContent = st.v0.toFixed(1);\n        ctx.clearRect(0, 0, cv.width, cv.height);\n        draw3D(); drawSide(); drawTop();\n      }\n      sh.addEventListener('input', function () { st.H = parseFloat(sh.value); render(); });\n      sz.addEventListener('input', function () { st.z0 = parseFloat(sz.value); render(); });\n      sv.addEventListener('input', function () { st.v0 = parseFloat(sv.value); render(); });\n      q('rst').addEventListener('click', function () { st.yaw = -0.45; st.pitch = 0.45; st.zoom = 1.0; render(); });\n      function getFsEl() {\n        return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;\n      }\n      function applyFsStyle(active) {\n        btnFs.textContent = active ? '\u9000\u51fa\u5168\u5c4f' : '\u5168\u5c4f\u663e\u793a';\n        if (active) {\n          root.style.maxWidth = 'none';\n          root.style.width = '100vw';\n          root.style.height = '100vh';\n          root.style.margin = '0';\n          root.style.border = 'none';\n          cv.style.width = 'auto';\n          cv.style.height = 'auto';\n          cv.style.maxWidth = '100vw';\n          cv.style.maxHeight = 'calc(100vh - 76px)';\n        } else {\n          root.style.position = '';\n          root.style.inset = '';\n          root.style.zIndex = '';\n          root.style.maxWidth = '960px';\n          root.style.width = '';\n          root.style.height = '';\n          root.style.margin = '16px auto';\n          root.style.border = '1.5px solid #000';\n          cv.style.width = '100%';\n          cv.style.height = 'auto';\n          cv.style.maxWidth = '100%';\n          cv.style.maxHeight = 'none';\n        }\n      }\n      function enterFallbackFs() {\n        st.pfs = true;\n        root.style.position = 'fixed';\n        root.style.inset = '0';\n        root.style.zIndex = '2147483647';\n        applyFsStyle(true);\n      }\n      function exitFallbackFs() {\n        st.pfs = false;\n        applyFsStyle(false);\n      }\n      function syncFs() {\n        var nativeActive = getFsEl() === root;\n        if (!nativeActive && !st.pfs) {\n          applyFsStyle(false);\n        } else {\n          applyFsStyle(true);\n        }\n      }\n      btnFs.addEventListener('click', function () {\n        if (getFsEl() === root) {\n          var exitFn = document.exitFullscreen || document.webkitExitFullscreen || document.mozCancelFullScreen || document.msExitFullscreen;\n          if (exitFn) { exitFn.call(document); }\n          return;\n        }\n        if (st.pfs) {\n          exitFallbackFs();\n          return;\n        }\n        var reqFn = root.requestFullscreen || root.webkitRequestFullscreen || root.mozRequestFullScreen || root.msRequestFullscreen;\n        if (reqFn) {\n          try {\n            var p = reqFn.call(root);\n            if (p && p.then) {\n              p.then(function () { applyFsStyle(true); }).catch(enterFallbackFs);\n            } else {\n              applyFsStyle(true);\n            }\n          } catch (e) {\n            enterFallbackFs();\n          }\n        } else {\n          enterFallbackFs();\n        }\n      });\n      ['fullscreenchange', 'webkitfullscreenchange', 'mozfullscreenchange', 'MSFullscreenChange'].forEach(function (ev) {\n        document.addEventListener(ev, syncFs);\n      });\n      window.addEventListener('keydown', function (e) {\n        if (e.key === 'Escape' && st.pfs) {\n          exitFallbackFs();\n        }\n      });\n      cv.addEventListener('wheel', function (e) {\n        var r = cv.getBoundingClientRect(), cy = (e.clientY - r.top) * (cv.height \/ r.height);\n        if (B3.y + B3.h >= cy) {\n          e.preventDefault();\n          st.zoom = Math.min(2.4, Math.max(0.55, st.zoom * (0 > e.deltaY ? 1.08 : 0.92)));\n          render();\n        }\n      }, { passive: false });\n      cv.addEventListener('mousedown', function (e) {\n        var r = cv.getBoundingClientRect(), cy = (e.clientY - r.top) * (cv.height \/ r.height);\n        if (B3.y + B3.h >= cy) { st.drag = true; st.lx = e.clientX; st.ly = e.clientY; cv.style.cursor = 'grabbing'; }\n      });\n      window.addEventListener('mousemove', function (e) {\n        if (!st.drag) { return; }\n        st.yaw += (e.clientX - st.lx) * 0.008;\n        st.pitch = Math.min(1.35, Math.max(0.12, st.pitch + (e.clientY - st.ly) * 0.006));\n        st.lx = e.clientX; st.ly = e.clientY;\n        render();\n      });\n      window.addEventListener('mouseup', function () { st.drag = false; cv.style.cursor = 'grab'; });\n      render();\n    })();\n  <\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>H = 2.6 m z0 = 1.5 m v0 = 24.0 m\/s \u91cd\u7f6e\u89c6\u89d2 \u5168\u5c4f\u663e\u793a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"ngg_post_thumbnail":0,"h5ap_radio_sources":[],"footnotes":""},"categories":[5,7],"tags":[443,247],"class_list":["post-49986","post","type-post","status-publish","format-image","hentry","category-physics","category-ict","tag-ai","tag-physics","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/www.qiusir.com\/index.php?rest_route=\/wp\/v2\/posts\/49986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qiusir.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qiusir.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qiusir.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qiusir.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49986"}],"version-history":[{"count":5,"href":"https:\/\/www.qiusir.com\/index.php?rest_route=\/wp\/v2\/posts\/49986\/revisions"}],"predecessor-version":[{"id":49992,"href":"https:\/\/www.qiusir.com\/index.php?rest_route=\/wp\/v2\/posts\/49986\/revisions\/49992"}],"wp:attachment":[{"href":"https:\/\/www.qiusir.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qiusir.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qiusir.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}