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
MapRectangle.cpp
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++
- #include "stdafx.h"
- #include "MapRectangle.h"
- CMapRectangle::CMapRectangle()
- {
- m_dbLeft = 0.0;
- m_dbRight = 0.0;
- m_dbTop = 0.0;
- m_dbBottom = 0.0;
- }
- CMapRectangle::CMapRectangle(CMapRectangle& MapRectangle )
- {
- m_dbLeft = MapRectangle.m_dbLeft;
- m_dbRight = MapRectangle.m_dbRight;
- m_dbTop = MapRectangle.m_dbTop;
- m_dbBottom = MapRectangle.m_dbBottom;
- }
- CMapRectangle::~CMapRectangle()
- {
- }
- BOOL CMapRectangle::IsPointIn(CMapPoint& point)
- {
- if ( min(m_dbLeft,m_dbRight) < point.GetX() && point.GetX()<max(m_dbLeft,m_dbRight)
- && min(m_dbTop,m_dbBottom) < point.GetY() && point.GetY()<max(m_dbTop,m_dbBottom))
- return TRUE;
- else
- return FALSE;
- }
- BOOL CMapRectangle::IsInsercet(CMapRectangle& rc)
- {
- if (m_dbRight < rc.GetLeft() || m_dbLeft > rc.GetRight()
- || m_dbTop < rc.GetBottom() || m_dbBottom > rc.GetTop() )
- return FALSE;
- else
- return TRUE;
- }