UNPKG

cesium

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

16 lines (14 loc) 399 B
define([ '../Core/defined', '../Core/SphereGeometry' ], function( defined, SphereGeometry) { 'use strict'; return function(sphereGeometry, offset) { if (defined(offset)) { sphereGeometry = SphereGeometry.unpack(sphereGeometry, offset); } return SphereGeometry.createGeometry(sphereGeometry); }; });