Determine if a coordinate is on a trajectory path?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have the equations for a projectile motion equation.
I would like to determine if a specific point is within a small range with respect to that curve.
"Will the ball pass near this point? True of false"
How would I implement this?
1 件のコメント
Mario Malic
2020 年 12 月 11 日
If you plug x coordinate in the equation of motion, the value you obtain will be equal to y coordinate, if the the point lies on the path.
回答 (1 件)
John D'Errico
2020 年 12 月 11 日
編集済み: John D'Errico
2020 年 12 月 11 日
You COULD use the distance2curve tool I have posted on the file exchange. Since this is certainly for homework, you may or may not be willing to use a file exchange tool. Your choice.
Alternatively, just generate many points along that curve. Then find the CLOSEST point from the set of all points you just generated.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interpolation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!