
GeoB
ASIC
Reference Manual
5.Standard Functions
5-34 TPS1100-Version
1.30
Example
Calculate the area defined by 3 given edges.
DIM iRetCode AS Integer
DIM CurrPt
AS GM_Point_Type
DIM dRadius
AS Double
DIM dArea
AS Double
'init CurrPt and dRadius with the first point
Init_GM_Point_Type( CurrPt )
CurrPt.dE = 1.0
CurrPt.dN = 1.0
GM_CalcAreaOfCoord_Start( CurrPt )
'add the second point
CurrPt.dE = 3.0
CurrPt.dN = 1.0
GM_CalcAreaOfCoord_Add( CurrPt, dRadius,
dArea, iRetCode )
'add the third point
CurrPt.dE = 2.0
CurrPt.dN = 2.0
GM_CalcAreaOfCoord_Add( CurrPt, dRadius,
dArea, iRetCode )
'close the polygon: back to the first point
CurrPt.dE = 1.0
CurrPt.dN = 1.0
GM_CalcAreaOfCoord_Add( CurrPt, dRadius,
dArea, iRetCode )
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...