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
UTILITY.H
Package: openglsystem.rar [view]
Upload User: nthssl
Upload Date: 2022-04-05
Package Size: 25357k
Code Size: 2k
Category:
OpenCV
Development Platform:
Visual C++
- /*****************************************************************************
- * VCGLib *
- * *
- * Visual Computing Group o> *
- * IEI Institute, CNUCE Institute, CNR Pisa <| *
- * / *
- * Copyright(C) 1999 by Paolo Cignoni, Claudio Rocchini *
- * All rights reserved. *
- * *
- * Permission to use, copy, modify, distribute and sell this software and *
- * its documentation for any purpose is hereby granted without fee, provided *
- * that the above copyright notice appear in all copies and that both that *
- * copyright notice and this permission notice appear in supporting *
- * documentation. the author makes no representations about the suitability *
- * of this software for any purpose. It is provided "as is" without express *
- * or implied warranty. *
- * *
- *****************************************************************************/
- /****************************************************************************
- History
- 1999 Feb 02 First Draft.
- 1999 May 15 Corrected Scope of sqrt.. (added ::)
- ****************************************************************************/
- #ifndef __VCGLIB_UTILITY
- #define __VCGLIB_UTILITY
- #include <math.h>
- namespace vcg {
- inline int sqrt(int v) {return int(::sqrt(v));};
- inline short sqrt(short v) {return short(::sqrtf(v));};
- inline float sqrt(float v) {return ::sqrtf(v);};
- inline double sqrt(double v) {return ::sqrt(v);};
- inline int abs(int v) {return ::abs(v);};
- inline short abs(short v) {return short(::abs(v));};
- inline float abs(float v) {return ::fabsf(v);};
- inline double abs(double v) {return ::fabs(v);};
- }
- #endif