Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Global.h
Package: SHP_to_VCT.rar [view]
Upload User: bjslfz
Upload Date: 2022-07-25
Package Size: 4430k
Code Size: 1k
Category:
File Operate
Development Platform:
C/C++
- #ifndef _MAP_GLOBAL_H_
- #define _MAP_GLOBAL_H_
- #define infinity 1e20 //定义为无穷大
- #define EP 1e-10 //定义无穷小
- typedef unsigned char uchar;
- typedef unsigned int uint;
- typedef struct DrawParam {
- double m_StartX; //当前坐标原点横坐标
- double m_StartY; //当前坐标原点纵坐标
- int m_ScreenWidth; //当前屏幕宽度
- int m_ScreenHeigh; //当前屏幕高度
- double m_Top;
- double m_left;
- float m_Scale; //当前绘图比例尺
- } DRAWPARAM;
- /************************************************************************/
- /* SwapWord() */
- /* */
- /* Swap a 2, 4 or 8 byte word. */
- /************************************************************************/
- static void SwapWord( int length, void * wordP )
- {
- int i;
- uchar temp;
- for( i=0; i < length/2; i++ )
- {
- temp = ((uchar *) wordP)[i];
- ((uchar *)wordP)[i] = ((uchar *) wordP)[length-i-1];
- ((uchar *) wordP)[length-i-1] = temp;
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- #endif //_MAP_GLOBAL_H_