1
A
回答
2
你也可以调查Luxor.jl:
using Luxor
p1 = Point(0, 0)
p2 = Point(10, 0)
p3 = Point(10, 10)
p4 = Point(0, 10)
isinside(Point(5, 5), [p1, p2, p3, p4]) # true
isinside(Point(15, 5), [p1, p2, p3, p4]) # false
但一定要检查顶点和边缘的例外...
8
的GeometricalPredicates包有inpolygon
:https://github.com/JuliaGeometry/GeometricalPredicates.jl
相关问题
- 1. Julia等价于MATLAB的`sym`?
- 2. 等价于Julia中的pickle
- 3. Python的dir(object)和__builtin__等价于Julia
- 4. python等价于MATLAB的mxCreateDoubleMatrix
- 5. Octave等价于matlab漂亮
- 6. R等价于Matlab trisurf()
- 7. 等价于matplotlib中的matlab imagesc?
- 8. Matlab等价于Mathematica的表或数组
- 9. 特征等价于matlab的expm()
- 10. 有matplotlib等价于MATLAB的datacursormode吗?
- 11. Numpy/IPython等价于Matlab的assignin
- 12. 等价于R中的MatLab“bar”函数?
- 13. Maple等价于Matlab的输入函数
- 14. 等价于Julia中的R样本(x,y,prob =)
- 15. python numpy等价于bandpower()from MATLAB
- 16. 在matlab中等价于diag(x,k)
- 17. C99等价于MATLAB“过滤器”?
- 18. Maple等价于Matlab矩阵(1:N)?
- 19. IDL等价于MATLAB函数accumarray()
- 20. python等价的Matlab的resample()
- 21. Python等价物的matlab corr2
- 22. 等价于BN_hex2bn
- 23. 等价于getbounds
- 24. Julia等效于Python多处理.Pool.map
- 25. MATLAB的robustfit的Java或C等价物
- 26. Python的等价物的MATLAB psf2otf函数
- 27. Python的等价物Matlab的持续
- 28. 在OpenCV中的Matlab的Conv2等价物
- 29. Python的argparse中Julia的ArgParse range_teser等价吗?
- 30. 用于MATLAB函数的Python等价物frontcon
警告:只有我rks为凸多边形 – aberdysh