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

Method check

docs/app/js/sanddance-app.js:75449–75452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75447 return this;
75448 }
75449 check() {
75450 if (!Number.isFinite(this.phi) || !Number.isFinite(this.theta) || !(this.radius > 0)) throw new Error("SphericalCoordinates: some fields set to invalid numbers");
75451 return this;
75452 }
75453}
75454exports.default = SphericalCoordinates;
75455

Callers 5

constructorMethod · 0.95
setMethod · 0.95
copyMethod · 0.95
fromLngLatZMethod · 0.95
fromVector3Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected