MCPcopy Create free account
hub / github.com/microsoft/SandDance / SphereGeometry

Function SphereGeometry

docs/tests/v2/es6/js/sanddance.js:32220–32235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32218 (0, _inherits2.default)(SphereGeometry, _Geometry);
32219
32220 function SphereGeometry() {
32221 var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32222 (0, _classCallCheck2.default)(this, SphereGeometry);
32223 var _opts$nlat = opts.nlat,
32224 nlat = _opts$nlat === void 0 ? 10 : _opts$nlat,
32225 _opts$nlong = opts.nlong,
32226 nlong = _opts$nlong === void 0 ? 10 : _opts$nlong,
32227 _opts$radius = opts.radius,
32228 radius = _opts$radius === void 0 ? 1 : _opts$radius,
32229 _opts$id = opts.id,
32230 id = _opts$id === void 0 ? (0, _utils.uid)('sphere-geometry') : _opts$id;
32231 return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(SphereGeometry).call(this, Object.assign({}, opts, {
32232 id: id,
32233 attributes: getSphereAttributes(nlat, nlong, radius)
32234 })));
32235 }
32236
32237 return SphereGeometry;
32238}(_geometry.default); // Primitives inspired by TDL http://code.google.com/p/webglsamples/,

Callers

nothing calls this directly

Calls 1

getSphereAttributesFunction · 0.85

Tested by

no test coverage detected