import{_ as n,c as t,b as Q,d as a,a as l,o as m}from"./app-DPgwpJxh.js";const d="/images/2015/01/csi.gif",s={},e={class:"MathJax",jax:"SVG",style:{position:"relative"}},o={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"9.584ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 4236.3 1000","aria-hidden":"true"},r={class:"MathJax",jax:"SVG",style:{position:"relative"}},g={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"9.584ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 4236.3 1000","aria-hidden":"true"},H={class:"MathJax",jax:"SVG",style:{position:"relative"}},h={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"9.584ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 4236.3 1000","aria-hidden":"true"},i={class:"MathJax",jax:"SVG",style:{position:"relative"}},p={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.02ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 451 453","aria-hidden":"true"},u={class:"MathJax",jax:"SVG",style:{position:"relative"}},L={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"6.868ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 3035.7 1000","aria-hidden":"true"},V={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},f={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"20.622ex",height:"3.023ex",role:"img",focusable:"false",viewBox:"0 -1086 9115.1 1336","aria-hidden":"true"},M={class:"MathJax",jax:"SVG",style:{position:"relative"}},c={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"},x={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},Z={style:{"vertical-align":"-2.148ex"},xmlns:"http://www.w3.org/2000/svg",width:"23.073ex",height:"5.428ex",role:"img",focusable:"false",viewBox:"0 -1449.5 10198.3 2399","aria-hidden":"true"},w={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},b={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"25.599ex",height:"2.565ex",role:"img",focusable:"false",viewBox:"0 -883.9 11314.7 1133.9","aria-hidden":"true"},y={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},v={style:{"vertical-align":"-0.186ex"},xmlns:"http://www.w3.org/2000/svg",width:"18.389ex",height:"2.185ex",role:"img",focusable:"false",viewBox:"0 -883.9 8128 965.9","aria-hidden":"true"},D={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},j={style:{"vertical-align":"-3.53ex"},xmlns:"http://www.w3.org/2000/svg",width:"49.655ex",height:"8.192ex",role:"img",focusable:"false",viewBox:"0 -2060.3 21947.4 3620.6","aria-hidden":"true"},C={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},k={style:{"vertical-align":"-1.552ex"},xmlns:"http://www.w3.org/2000/svg",width:"23.498ex",height:"5.268ex",role:"img",focusable:"false",viewBox:"0 -1642.5 10386 2328.5","aria-hidden":"true"},B={class:"MathJax",jax:"SVG",style:{position:"relative"}},S={style:{"vertical-align":"-0.186ex"},xmlns:"http://www.w3.org/2000/svg",width:"10.162ex",height:"1.805ex",role:"img",focusable:"false",viewBox:"0 -716 4491.4 798","aria-hidden":"true"},J={class:"MathJax",jax:"SVG",style:{position:"relative"}},G={style:{"vertical-align":"-0.339ex"},xmlns:"http://www.w3.org/2000/svg",width:"2.44ex",height:"1.885ex",role:"img",focusable:"false",viewBox:"0 -683 1078.6 833","aria-hidden":"true"},A={class:"MathJax",jax:"SVG",style:{position:"relative"}},O={style:{"vertical-align":"-0.339ex"},xmlns:"http://www.w3.org/2000/svg",width:"2.44ex",height:"1.885ex",role:"img",focusable:"false",viewBox:"0 -683 1078.6 833","aria-hidden":"true"},P={class:"MathJax",jax:"SVG",style:{position:"relative"}},R={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"},N={class:"MathJax",jax:"SVG",style:{position:"relative"}},E={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"},X={class:"MathJax",jax:"SVG",style:{position:"relative"}},F={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"},q={class:"MathJax",jax:"SVG",style:{position:"relative"}},z={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"},I={class:"MathJax",jax:"SVG",style:{position:"relative"}},K={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"},U={class:"MathJax",jax:"SVG",style:{position:"relative"}},W={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"};function Y($,T){return m(),t("div",null,[T[66]||(T[66]=Q("h1",{id:"如何计算线段和圆的交点",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#如何计算线段和圆的交点"},[Q("span",null,"如何计算线段和圆的交点")])],-1)),T[67]||(T[67]=Q("p",null,"一个程序里用到了计算线段和圆相交情况的算法,在这里记下来备忘",-1)),T[68]||(T[68]=Q("figure",null,[Q("img",{src:d,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),Q("p",null,[T[10]||(T[10]=a("设线段的两个端点分别是")),Q("mjx-container",e,[(m(),t("svg",o,T[0]||(T[0]=[l('',1)]))),T[1]||(T[1]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"1")]),Q("mo",null,","),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},")")])],-1))]),T[11]||(T[11]=a("和")),Q("mjx-container",r,[(m(),t("svg",g,T[2]||(T[2]=[l('',1)]))),T[3]||(T[3]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"2")]),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"2")]),Q("mo",null,","),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"2")]),Q("mo",{stretchy:"false"},")")])],-1))]),T[12]||(T[12]=a(",圆的圆心在")),Q("mjx-container",H,[(m(),t("svg",h,T[4]||(T[4]=[l('',1)]))),T[5]||(T[5]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"3")]),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"3")]),Q("mo",null,","),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"3")]),Q("mo",{stretchy:"false"},")")])],-1))]),T[13]||(T[13]=a(",半径为")),Q("mjx-container",i,[(m(),t("svg",p,T[6]||(T[6]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D45F",d:"M21 287Q22 290 23 295T28 317T38 348T53 381T73 411T99 433T132 442Q161 442 183 430T214 408T225 388Q227 382 228 382T236 389Q284 441 347 441H350Q398 441 422 400Q430 381 430 363Q430 333 417 315T391 292T366 288Q346 288 334 299T322 328Q322 376 378 392Q356 405 342 405Q286 405 239 331Q229 315 224 298T190 165Q156 25 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 114 189T154 366Q154 405 128 405Q107 405 92 377T68 316T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[7]||(T[7]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"r")])],-1))]),T[14]||(T[14]=a(",那么如果有交点")),Q("mjx-container",u,[(m(),t("svg",L,T[8]||(T[8]=[l('',1)]))),T[9]||(T[9]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"P"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"x"),Q("mo",null,","),Q("mi",null,"y"),Q("mo",{stretchy:"false"},")")])],-1))]),T[15]||(T[15]=a("的话"))]),Q("mjx-container",V,[(m(),t("svg",f,T[16]||(T[16]=[l('',1)]))),T[17]||(T[17]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"P"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"="),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"+"),Q("mi",null,"u"),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"2")]),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"−"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")")])],-1))]),Q("p",null,[T[20]||(T[20]=a("其中,")),Q("mjx-container",M,[(m(),t("svg",c,T[18]||(T[18]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D462",d:"M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[19]||(T[19]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"u")])],-1))]),T[21]||(T[21]=a("在0到1之间,转换成各个坐标"))]),Q("mjx-container",x,[(m(),t("svg",Z,T[22]||(T[22]=[l('',1)]))),T[23]||(T[23]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mrow",{"data-mjx-texclass":"INNER"},[Q("mo",{"data-mjx-texclass":"OPEN"},"{"),Q("mtable",{columnalign:"left left",columnspacing:"1em",rowspacing:".2em"},[Q("mtr",null,[Q("mtd",null,[Q("mi",null,"x")]),Q("mtd",null,[Q("mo",null,"="),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"1")]),Q("mo",null,"+"),Q("mi",null,"u"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},")")])]),Q("mtr",null,[Q("mtd",null,[Q("mi",null,"y")]),Q("mtd",null,[Q("mo",null,"="),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"1")]),Q("mo",null,"+"),Q("mi",null,"u"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},")")])])]),Q("mo",{"data-mjx-texclass":"CLOSE",fence:"true",stretchy:"true",symmetric:"true"})])])],-1))]),T[69]||(T[69]=Q("p",null,"由于P也在圆上,所以",-1)),Q("mjx-container",w,[(m(),t("svg",b,T[24]||(T[24]=[l('',1)]))),T[25]||(T[25]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mo",{stretchy:"false"},"("),Q("mi",null,"x"),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"3")]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")]),Q("mo",null,"+"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"y"),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"3")]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")]),Q("mo",null,"="),Q("msup",null,[Q("mi",null,"r"),Q("mn",null,"2")])])],-1))]),T[70]||(T[70]=Q("p",null,"联立上面的公式,可以得到",-1)),Q("mjx-container",y,[(m(),t("svg",v,T[26]||(T[26]=[l('',1)]))),T[27]||(T[27]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mi",null,"A"),Q("msup",null,[Q("mi",null,"u"),Q("mn",null,"2")]),Q("mo",null,"+"),Q("mi",null,"B"),Q("mi",null,"u"),Q("mo",null,"+"),Q("mi",null,"C"),Q("mo",null,"="),Q("mn",null,"0")])],-1))]),T[71]||(T[71]=Q("p",null,"其中",-1)),Q("mjx-container",D,[(m(),t("svg",j,T[28]||(T[28]=[l('',1)]))),T[29]||(T[29]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mrow",{"data-mjx-texclass":"INNER"},[Q("mo",{"data-mjx-texclass":"OPEN"},"{"),Q("mtable",{columnalign:"left left",columnspacing:"1em",rowspacing:".2em"},[Q("mtr",null,[Q("mtd",null,[Q("mi",null,"A"),Q("mo",null,"=")]),Q("mtd",null,[Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"1")]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")]),Q("mo",null,"+"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"1")]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")])])]),Q("mtr",null,[Q("mtd",null,[Q("mi",null,"B"),Q("mo",null,"=")]),Q("mtd",null,[Q("mn",null,"2"),Q("mo",{stretchy:"false"},"("),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},")"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"1")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"3")]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"+"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},")"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"1")]),Q("mo",null,"−"),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"3")]),Q("mo",{stretchy:"false"},")"),Q("mo",{stretchy:"false"},")")])]),Q("mtr",null,[Q("mtd",null,[Q("mi",null,"C"),Q("mo",null,"=")]),Q("mtd",null,[Q("msubsup",null,[Q("mi",null,"x"),Q("mn",null,"3"),Q("mn",null,"2")]),Q("mo",null,"+"),Q("msubsup",null,[Q("mi",null,"y"),Q("mn",null,"3"),Q("mn",null,"2")]),Q("mo",null,"+"),Q("msubsup",null,[Q("mi",null,"x"),Q("mn",null,"1"),Q("mn",null,"2")]),Q("mo",null,"+"),Q("msubsup",null,[Q("mi",null,"y"),Q("mn",null,"1"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("mn",null,"2"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"3")]),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"1")]),Q("mo",null,"+"),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"3")]),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"1")]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"−"),Q("msup",null,[Q("mi",null,"r"),Q("mn",null,"2")])])])]),Q("mo",{"data-mjx-texclass":"CLOSE",fence:"true",stretchy:"true",symmetric:"true"})])])],-1))]),T[72]||(T[72]=Q("p",null,"解一元二次方程,可以得到",-1)),Q("mjx-container",C,[(m(),t("svg",k,T[30]||(T[30]=[l('',1)]))),T[31]||(T[31]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"u"),Q("mo",null,"="),Q("mfrac",null,[Q("mrow",null,[Q("mo",null,"−"),Q("mi",null,"B"),Q("mo",null,"±"),Q("msqrt",null,[Q("msup",null,[Q("mi",null,"B"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("mn",null,"4"),Q("mi",null,"A"),Q("mi",null,"C")])]),Q("mrow",null,[Q("mn",null,"2"),Q("mi",null,"A")])])])])])],-1))]),Q("p",null,[T[34]||(T[34]=a("根据")),Q("mjx-container",B,[(m(),t("svg",S,T[32]||(T[32]=[l('',1)]))),T[33]||(T[33]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"B"),Q("mn",null,"2"),Q("mo",null,"−"),Q("mn",null,"4"),Q("mi",null,"A"),Q("mi",null,"C")])],-1))]),T[35]||(T[35]=a("的结果,可以判断线段所在直线和圆的相交情况"))]),T[73]||(T[73]=Q("ul",null,[Q("li",null,"如果小于0,表示没有交点"),Q("li",null,"如果等于0,表示相切,只有一个交点"),Q("li",null,"如果大于0,表示有两个交点")],-1)),Q("p",null,[T[42]||(T[42]=a("针对")),Q("mjx-container",J,[(m(),t("svg",G,T[36]||(T[36]=[l('',1)]))),T[37]||(T[37]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"1")])])],-1))]),T[43]||(T[43]=a("和")),Q("mjx-container",A,[(m(),t("svg",O,T[38]||(T[38]=[l('',1)]))),T[39]||(T[39]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"P"),Q("mn",null,"2")])])],-1))]),T[44]||(T[44]=a("之间的线段,根据计算出的")),Q("mjx-container",P,[(m(),t("svg",R,T[40]||(T[40]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D462",d:"M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[41]||(T[41]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"u")])],-1))]),T[45]||(T[45]=a("值,有5种结果"))]),Q("ul",null,[Q("li",null,[T[48]||(T[48]=a("如果线段和圆没有交点,而且都在圆的外面的话,则")),Q("mjx-container",N,[(m(),t("svg",E,T[46]||(T[46]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D462",d:"M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[47]||(T[47]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"u")])],-1))]),T[49]||(T[49]=a("的两个解都是小于0或者大于1的"))]),Q("li",null,[T[52]||(T[52]=a("如果线段和圆没有交点,而且都在圆的里面的话,")),Q("mjx-container",X,[(m(),t("svg",F,T[50]||(T[50]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D462",d:"M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[51]||(T[51]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"u")])],-1))]),T[53]||(T[53]=a("的两个解符号相反,一个小于0,一个大于1"))]),Q("li",null,[T[56]||(T[56]=a("如果线段和圆只有一个交点,则")),Q("mjx-container",q,[(m(),t("svg",z,T[54]||(T[54]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D462",d:"M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[55]||(T[55]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"u")])],-1))]),T[57]||(T[57]=a("值中有一个是在0和1之间,另一个不是"))]),Q("li",null,[T[60]||(T[60]=a("如果线段和圆有两个交点,则")),Q("mjx-container",I,[(m(),t("svg",K,T[58]||(T[58]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D462",d:"M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[59]||(T[59]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"u")])],-1))]),T[61]||(T[61]=a("值得两个解都在0和1之间"))]),Q("li",null,[T[64]||(T[64]=a("如果线段和圆相切,则")),Q("mjx-container",U,[(m(),t("svg",W,T[62]||(T[62]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D462",d:"M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"})])])],-1)]))),T[63]||(T[63]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"u")])],-1))]),T[65]||(T[65]=a("值只有1个解,且在0和1之间"))])])])}const Q1=n(s,[["render",Y],["__file","SegmentCircle.html.vue"]]),T1=JSON.parse('{"path":"/blog/2025/02/SegmentCircle.html","title":"如何计算线段和圆的交点","lang":"zh-CN","frontmatter":{"title":"如何计算线段和圆的交点","tags":"数学 算法"},"headers":[],"git":{},"filePathRelative":"blog/2025/02/SegmentCircle.md"}');export{Q1 as comp,T1 as data};