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
sgSpaceMath.h
Package: solidgraph_sources.zip [view]
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 2k
Category:
Graph program
Development Platform:
Visual C++
- #ifndef __sgSpaceMath__
- #define __sgSpaceMath__
- namespace sgSpaceMath
- {
- sgCore_API bool IsPointsOnOneLine(const SG_POINT& p1,
- const SG_POINT& p2,
- const SG_POINT& p3);
- sgCore_API double PointsDistance(const SG_POINT& p1, const SG_POINT& p2);
- sgCore_API bool NormalVector(SG_VECTOR& vect);
- sgCore_API SG_VECTOR VectorsAdd(const SG_VECTOR& v1,const SG_VECTOR& v2);
- sgCore_API SG_VECTOR VectorsSub(const SG_VECTOR& v1,const SG_VECTOR& v2);
- sgCore_API double VectorsScalarMult(const SG_VECTOR& v1,const SG_VECTOR& v2);
- sgCore_API SG_VECTOR VectorsVectorMult(const SG_VECTOR& v1,const SG_VECTOR& v2);
- sgCore_API double ProjectPointToLineAndGetDist(const SG_POINT& lineP,
- const SG_VECTOR& lineDir,
- const SG_POINT& pnt,
- SG_POINT& resPnt);
- typedef enum
- {
- SG_LINE_PARALLEL = -1,
- SG_LINE_ON_PLANE = 0,
- SG_EXIST_INTERSECT_PONT = 1
- } SG_PLANE_AND_LINE;
- sgCore_API SG_PLANE_AND_LINE IntersectPlaneAndLine(const SG_VECTOR& planeNorm,
- const double planeD,
- const SG_POINT& lineP,
- const SG_VECTOR& lineDir,
- SG_POINT& resP);
- sgCore_API bool IsSegmentsIntersecting(const SG_LINE& ln1,
- bool as_line1,
- const SG_LINE& ln2,
- bool as_line2,
- SG_POINT& resP);
- sgCore_API bool PlaneFromPoints(const SG_POINT& p1,
- const SG_POINT& p2,
- const SG_POINT& p3,
- SG_VECTOR& resPlaneNorm,
- double& resPlaneD);
- sgCore_API void PlaneFromNormalAndPoint(const SG_POINT& planePnt,
- const SG_VECTOR& planeNorm,
- double& resPlaneD);
- sgCore_API double GetPlanePointDistance(const SG_POINT& pnt,
- const SG_VECTOR& planeNorm,
- const double planeD);
- };
- #endif