point-in-ellipse:确定点是否在椭圆内

时间:2021-05-13 23:09:33
【文件属性】:
文件名称:point-in-ellipse:确定点是否在椭圆内
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-13 23:09:33
algorithm computational-geometry 2d ellipse geometric-algorithms 点在椭圆上() 根据椭圆方程确定该点是在椭圆内部还是在椭圆外部。 例子 var inside = require ( 'point-in-ellipse' ) ; var c = [ 100 , 100 ] ; var rx = 100 , ry = 200 ; var rotation = 45 * ( Math . PI / 180 ) ; // rotation in radians inside ( 150 , 150 , c [ 0 ] , c [ 1 ] , rx , ry , rotation ) ; // true 原料药 pointInEllipse ( px , py , cx , cy , rx , ry , rotation = 0 ) ; 用法 CommonJS /节点 npm install -S point-in-ellipse; ... var ins
【文件预览】:
point-in-ellipse-master
----.gitignore(578B)
----package.json(735B)
----package-lock.json(9KB)
----.travis.yml(103B)
----LICENSE(1KB)
----index.js(1011B)
----Readme.md(2KB)
----example()
--------app.js(2KB)
--------index.html(393B)
----test()
--------test.js(659B)

网友评论