-1
A
回答
0
這似乎更到的溶液是一種數學問題的:
經過測試線和陣列:
test_point=(x,y);
for each line (x1,y1),(x2,y2) in the array of lines{
if(x1<x&x<x2&y1<y&y<y2)&&
((x-x1)/(y-y2)~=(x-x2)/(y-y2))) the point lies in the given line
}
基本上,確保點X1 < = X < = X2 (x1,y1)到(x,y)和(x,y)到(x2,y2)的斜率近似相等。
相關問題
- 1. Sharepoint:找出當前用戶是否屬於指定組
- 2. 如何查找Windows用戶是否屬於指定組?
- 3. 如何檢查點是否屬於ConvexShape?
- 4. pugixml:找出xpath是否匹配特定的節點/屬性
- 5. 如何找出IP地址是否屬於與python2網絡?
- 6. 如何找出給定的點是否在矩形內
- 7. Django如何找出是否早於特定時區下午7點
- 8. 如何找出給定div中是否有焦點?
- 9. 如何找出是否一個指針是PC /的Visual C++
- 10. 驗證點是否位於指定節點的網格
- 11. 如何找出預定的sql作業是否沒有運行
- 12. 如何找出DOMElement/DOMNode是否是PHP中DOMDocument的子節點?
- 13. 模板類函數T:如何找出T是否是指針?
- 14. 如何找出定時器是否在運行?
- 15. 如何找出屬性是否是反射的自動實現的屬性?
- 16. 找出指定數量的數組元素是否匹配
- 17. 如何找出特定的Subversion版本屬於哪個分支?
- 18. 如何指定Tuple屬於FSharpCore.dll?
- 19. 如何找出Silverlight控件的屬性是否附加了綁定?
- 20. 查找QWidget是否屬於佈局?
- 21. 檢查點是否屬於圖
- 22. 元素是否屬於節點?
- 23. 如何找出範圍指數是否存在?
- 24. 如何找出CPU是否與ARM v5兼容cpu指令
- 25. 有沒有辦法找出IP地址是否屬於iPhone?
- 26. 如何找出給定點是否在C++的3d區域內/外?
- 27. 如何找出glEnable(GL_MULTISAMPLE)是否適用於我的紋理?
- 28. 如何確定是否MPI進程屬於給定通訊
- 29. 如何檢查給定的點是否在選定的行中
- 30. 如何找出用戶是否爲默認參數指定了一個值?