Class: PrecisionSchema
Serialization.PrecisionDetection.PrecisionSchema()
Contains information for the decimal precision of data in different channels
Constructor
new PrecisionSchema()
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
position | int | <optional> | 0 | Variable path point layout properties X, Y, [Z] compression precision. Varies in range [0, 15]. |
size | int | <optional> | 0 | Variable path point layout properties SIZE compression precision. Varies in range [0, 15]. When is not a part from the layout should be 0. |
rotation | int | <optional> | 0 | Variable path point layout properties ROTATION compression precision. Varies in range [0, 15]. When is not a part from the layout should be 0. |
scale | int | <optional> | 0 | Variable 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. |
offset | int | <optional> | 0 | Variable 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:
Name | Type | Description |
---|---|---|
schema | Serialization.PrecisionDetection.PrecisionSchema | Update source |
(static) encode(data) → {int}
Encodes precisions values
Parameters:
Name | Type | Description |
---|---|---|
data | JSON | Precisions values |
Returns:
Precisions value
Type
int