Spoint
Conversion functions spoint
concept
- spoint is a Point(Group) Value type with two coordinates of the 16 bits (2 bytes) signed integer value type: Int16.
- spoint() is a function converting other point data items or units to the spoint Value type.
This page describes the spoint() function.
syntax
- spoint(a)
definition
spoint(a) converts the coordinates of a point item a to the spoint (int16 coordinates) value type.
applies to
- data item or unit with PointGroup Value type
example
attribute<spoint> spointA (ADomain) := spoint(A);
| A(fpoint) | spointA |
|---|---|
| xy(0; 0) | xy(0; 0) |
| xy(1; 1) | xy(1; 1) |
| xy(10000000; 1000000) | null |
| {-2.5, 2.5} | xy(2; -2) |
| {99.9, 99.9} | xy(99; 99) |
ADomain, nr of rows = 5