【文件属性】:
文件名称:Geometry:二维几何的实用程序
文件大小:90KB
文件格式:ZIP
更新时间:2021-05-08 14:18:22
JavaScript
几何快速
人类的几何
动机
当人类画画时,我们思考关系,当机器画画时,我们看到点。
例子
创造一颗星
let center = CGPointMake ( 100 , 100 )
let circle = Circle ( center : center, radius : 50 )
let points = circle. pointsSplitedEvenly ( 5 )
let reorderedPoints = indices (points). map {points[ $0 * 2 % points. count ]}
path = UIBezierPath. poligonByPoints (reorderedPoints) // Now the path is a star
CGPoint
名称
定义
描述
距离
函数距离(anotherPoint:CGPoint)->
【文件预览】:
Geometry-master
----Geometry()
--------Geometry.xcodeproj()
--------Geometry()
--------GeometryTests()
----.gitignore(9B)
----bezior.js(140KB)
----README.md(4KB)