Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | 3x 3x 3x 3x 1x 5x 5x 8x | import Check from "../../../../Core/Check.js";
/**
* @typedef {object} PpeMetadata.ConstructorOptions
*
* Initialization options for the PpeMetadata constructor
*
* @property {PpeSource} source The source of the error data
* @property {number|undefined} [min] Minimum allowed value for the property.
* @property {number|undefined} [max] Maximum allowed value for the property.
*/
/**
* Metadata related to the stored PPE (Per-Point Error) data.
*
* This reflects the `ppeMetadata` definition of the
* {@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local} glTF extension.
*
* @constructor
* @param {PpeMetadata.ConstructorOptions} options An object describing initialization options
*
* @private
*/
function PpeMetadata(options) {
//>>includeStart('debug', pragmas.debug);
Check.typeOf.string("options.source", options.source);
//>>includeEnd('debug');
this._min = options.min;
this._max = options.max;
this._source = options.source;
}
Object.defineProperties(PpeMetadata.prototype, {
/**
* Minimum allowed value for the property. This is the minimum of all
* values after the transforms based on the offset and scale properties
* have been applied.
*
* @memberof PpeMetadata.prototype
* @type {number|undefined}
* @readonly
*/
min: {
get: function () {
return this._min;
},
},
/**
* Maximum allowed value for the property. This is the maximum of all
* values after the transforms based on the offset and scale properties
* have been applied.
*
* @memberof PpeMetadata.prototype
* @type {number|undefined}
* @readonly
*/
max: {
get: function () {
return this._max;
},
},
/**
* Possible error source contents
*
* @memberof PpeMetadata.prototype
* @type {PpeSource}
* @readonly
*/
source: {
get: function () {
return this._source;
},
},
});
export default PpeMetadata;
|