ruby-geometry:Ruby中的简单几何类和算法

时间:2021-05-26 21:46:48
【文件属性】:
文件名称:ruby-geometry:Ruby中的简单几何类和算法
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-26 21:46:48
Ruby Ruby中的几何 在Ruby中实现基本的2D几何算法。 安装 gem 'ruby-geometry' , require : 'geometry' 定义的几何对象 观点 部分 向量 多边形 线 已经实现的算法 凸多边形的Polygon#area 点到线或线段的Line#distance_to(point) , Segment#distance_to(point) 细分重叠吗? Segments#overlaps? 段是否位于一条线上? Segment#lies_on_one_line_with? 线段相交吗? Segment#intersects_with? Segment#intersection_point_with相交点Segment#intersection_point_with 段是否包含给定点? Segment#contains_point? 段是平行的吗? S
【文件预览】:
ruby-geometry-master
----.travis.yml(279B)
----ruby-geometry.gemspec(716B)
----Rakefile(252B)
----test()
--------polygon()
--------line()
--------segment()
--------geometry()
--------vector()
--------point()
--------bounding_box()
----gemfiles()
--------Gemfile.activesupport-4(78B)
--------Gemfile.activesupport-5(78B)
----TODO(761B)
----Gemfile(38B)
----.gitignore(99B)
----CHANGELOG.md(262B)
----lib()
--------geometry.rb(447B)
--------geometry()
----README.md(2KB)
----MIT-LICENSE(1KB)

网友评论