Rational Point List Simplified Format

Simplified format

Defined as a two-element JSON array: [ rationalPoints, unit ]

rationalPoints : JSON array of rational points, each one being a two-element JSON array:
[ horizontal, vertical ]

horizontal : number
vertical : number

unit : string (among "distanceUnit", "percentUnit", "pixelsUnit")

Example

[
    [
        [ 0, 0 ], [ 50, 0 ], [ 50, 0 ], [ 100, 0 ],
        [ 0, 50 ], [ 33.33, 33.33 ], [ 66.67, 33.33 ], [ 100, 50 ],
        [ 0, 50 ], [ 33.33, 66.67 ], [ 66.67, 66.67 ], [ 100, 50 ],
        [ 0, 100 ], [ 50, 100 ], [ 50, 100 ], [ 100, 100 ]
    ],
    "percentUnit"
]

Tags: , , ,

Comments are closed.