IndigoObject.prototype.xyz = function()

in indigo.js [368:376]


IndigoObject.prototype.xyz = function() {
    this.d._setSessionId();
    let xyzPtr = this.d._lib.indigoXYZ(this.id); /* int atom */
    if (xyzPtr.length == 0)
        throw IndigoException(this.d.getLastError());

    let xyz = xyzPtr.deref();
    return [xyz.x, xyz.y, xyz.z];
};