ArcDrawer

圆弧

new YS.ArcDrawer(options)

圆弧
Name Type Description
options Object 对象有下面这些属性:
Name Type Default Description
ys YouScene YouScene对象
id String optional 唯一标识
name String optional 名称
color Color optional 颜色
sides Number 720 optional 圆弧点的密度。默认为720,即每隔1°绘制两个点。
active Boolean optional 是否激活
Implements:

Methods

calculateAngle(pointA, centerPoint)Number

计算圆上一点所在半径的直线与X轴的夹角,结果以弧度形式表示,范围是+π到 +2π。
Name Type Description
pointA Object 圆上一点
centerPoint Object 圆心
Returns:

getPositionss()Array.<Array.<XYZ>>

获取点集
Returns:
点集
Implements: