Class: GeoBox

GeoBox

new GeoBox(length, width, height)

三维长方体几何对象类。该类用于在三维图层上绘制长方体几何对象。

Name Type Description
length number

长方体的长度,单位:米。

width number

长方体的宽度,单位:米。

height number

长方体的高度,单位:米。

Members

geoHeightnumber

获取或设置长方体的高度,单位:米

Default Value:
0.0

geoLengthnumber

获取或设置长方体的长度,单位:米。

Default Value:
0.0

geoWidthnumber

获取或设置长方体的宽度,单位:米

Default Value:
0.0

Methods

getCenter(){Point3D}

获取长方体几何对象的中心点。

Returns:
Type Description
Point3D 长方体几何对象的中心点地理坐标值。

isValid(){boolean}

获取长方体几何对象是否有效。

Returns:
Type Description
boolean 如果长方体几何对象有效则返回 true,否则返回 false。