Skip to main content

Class: PrecisionSchema

Serialization.PrecisionDetection.PrecisionSchema()

Contains information for the decimal precision of data in different channels

Constructor

new PrecisionSchema()

Properties:
NameTypeAttributesDefaultDescription
positionint<optional>0Variable path point layout properties X, Y, [Z] compression precision. Varies in range [0, 15].
sizeint<optional>0Variable path point layout properties SIZE compression precision. Varies in range [0, 15]. When is not a part from the layout should be 0.
rotationint<optional>0Variable path point layout properties ROTATION compression precision. Varies in range [0, 15]. When is not a part from the layout should be 0.
scaleint<optional>0Variable path point layout properties SCALE_X, SCALE_Y, [SCALE_Z] compression precision. Varies in range [0, 15]. When is not a part from the layout should be 0.
offsetint<optional>0Variable path point layout properties OFFSET_X, OFFSET_Y, [OFFSET_Z] compression precision. Varies in range [0, 15]. When is not a part from the layout should be 0.

Methods

decode() → {JSON}

Decodes precisions value

Returns:

Precisions values

Type

JSON

update(schema)

Updates current schema precisions with better compression values only

Parameters:
NameTypeDescription
schemaSerialization.PrecisionDetection.PrecisionSchemaUpdate source

(static) encode(data) → {int}

Encodes precisions values

Parameters:
NameTypeDescription
dataJSONPrecisions values
Returns:

Precisions value

Type

int

Home