...
contains the following Telitab set in the Data slot:
|POLYGON1|
0
2 "XC" "YC"
"1" 0 0
"2" 1 0
"3" 1 1
"4" 0 1|
The polygon is a square with corner points (0,0), (1,0), (1,1) and (0,1), this gives for example the following properties:
...
with the TeLiTab of the previous example in the dataset gives the possibility to calculate properties of a line section within the polygon. Lets take a look at a line between the points (0,0) and (2,2):
X0 = 0
Y0 = 0
XN = 2
YN = 2
Only the section between the points (0,0) and (1,1) is within the polygon, this gives for example the following properties:
...
with the TeLiTab of the first example in the dataset gives the possibility to determine whether a point is located inside or outside a polygon. Lets take a look at the point (-0.5 , 0.5):
X0 = -0.5
Y0 = 0.5
This results in the following properties:
...
In direct definition, the points of the polygon are stated in the relation itself:
POLYGON(0, Npoints%, X_11, Y_12, X_21, Y_22,.., X_n1, Y_n2, X0, Y0, XN, YN, Mode%)
The minimum number of (X,Y) data points Npoints% in the list is 3 in which case the polygon is a triangle.
The syntax
POLYGON(0, 4, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, Mode)
is the same polygon as in the previous examples and e.g. for Mode = 1, the area of the polygon is returned: 1.00
Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview