CircleShapeDrawer

圆形

new YS.CircleShapeDrawer(options)

圆形
Name Type Description
options Object 对象有下面这些属性:
Name Type Description
ys YouScene YouScene对象
id String optional 唯一标识
name String optional 名称
color Color optional 颜色
active Boolean optional 是否激活
Implements:

Members

points : Number

圆弧上点数量,点数越多,越圆,效率越差
Default Value: 64

Methods

getShape(length, width, height)Array.<Position>

以形状中心为原点,给定长度,绘制形状,以正北为y正轴,正东为x正轴,垂直屏幕向外为z正轴(如果需要)
Name Type Description
length Number 形状在x方向的长度
width Number 形状在y方向的长度
height Number 形状在z方向的高度
Returns:
返回组成形状的边上形状点序列 position = {longitude: 180, latitude: 90, height: 50}
Implements: