Class

CylinderEntity

CylinderEntity(position, length, topRadius, bottomRadius)

Constructor

# new CylinderEntity(position, length, topRadius, bottomRadius)

圆柱体

Parameters:
Name Type Description
position Position

任意类型的坐标

length number

圆柱高度

topRadius number

上部半径

bottomRadius number

底部半径

Author:
  • xyj

Extends

Members

# bottomRadius

number

# readonly bottomRadius

圆柱底部半径

# length

number

# readonly length

圆柱高度

Position

# readonly position

图形坐标

# position

# topRadius

number

# readonly topRadius

圆柱上部半径

string

# readonly type

类型

Methods

# addTo(layer) → {Graphic}

将实体加入图层

Parameters:
Name Type Description
layer Layer

图层

Overrides:
See:

this - 当前实体对象

Graphic

# setStyle() → {CylinderEntity}

设置样式

  • 返回自己,链式调用