亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - Solve the problem of knowing the coordinates of three points, the distance ratio to the three points, and finding the coordinates of an unknown point
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-07-01 09:11:54
0
4
966

Please teach me a mathematical algorithm
The known three-point coordinates p1(x0,y0),p2(x1,y1)p3(x2,y2). The unknown point M(x,y ) to the ratio of three points d1, d2, d3, find the coordinates of the unknown point
Notes: 1. M may not be in the triangle formed by p1, p2, p3. Is there a fixed solution formula? If it is not possible, prepare to go to school to stay.

PHP中文網(wǎng)
PHP中文網(wǎng)

認證0級講師

reply all(4)
滿天的星座

This is a problem of solving equations. Formulate a system of equations based on known conditions. Express x and y using known conditions. What you get is the formula you want

過去多啦不再A夢

Lemma

Suppose $A$, $B$ are two points on the plane, $lambda > 0, lambda neq 1$, the trajectory of $P$ point satisfying $frac{|AP|}{|BP|}=lambda$ is A circle (Apollonian circle); when $lambda = 1$, the trajectory degenerates into a straight line, the perpendicular to $AB$. When not degenerate, the circle has $CD$ as its diameter, where $C, D$ are located on the straight line $AB$, and satisfy $C$ on the line segment $AB$, $D$ outside the line segment $AB$, $frac {|AC|}{|BC|}=frac{|AD|}{|BD|}=lambda$.

According to this lemma, you first select $P_1$, $P_2$ and get a trajectory $Gamma_1$; then select $P_2$, $P_3$ and get the second trajectory $Gamma_2$. If $Gamma_1,Gamma_2$ has an intersection point, the intersection point is the desired one.

$$$$

我想大聲告訴你

Determine whether a point is within a triangle on a two-dimensional plane

As for finding the ratio from M point to each point, just find the distance to each point.

學(xué)習(xí)ing

Solution of quadratic equation in two variables

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template