Math.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_MATH_H
00002 #define JAVA_LANG_MATH_H 1
00003 
00004 #ifndef JAVA_LANG_OBJECT_H
00005 #include <java_lang/Object.h>
00006 #endif /* JAVA_LANG_OBJECT_H */
00007 
00008 namespace java {
00009   namespace lang {
00010 
00033     class JAVA_LANG_SPEC Math : virtual public Object {
00034   
00035     public:
00036 
00041       static const jdouble E;
00042 
00047       static const jdouble PI;
00048 
00064       static jdouble sin(jdouble a);
00065 
00078       static jdouble cos(jdouble a);
00079 
00095       static jdouble tan(jdouble a);
00096 
00114       static jdouble asin(jdouble a);
00115 
00130       static jdouble acos(jdouble a);
00131 
00148       static jdouble atan(jdouble a);
00149 
00159       static jdouble toRadians(jdouble angdeg);
00160 
00170       static jdouble toDegrees(jdouble angrad);
00171 
00189       static jdouble exp(jdouble a);
00190 
00209       static jdouble log(jdouble a);
00210 
00229       static jdouble sqrt(jdouble a);
00230 
00253       static jdouble IEEEremainder(jdouble f1, jdouble f2);
00254 
00275       static jdouble ceil(jdouble a);
00276 
00293       static jdouble floor(jdouble a);
00294 
00310       static jdouble rint(jdouble a);
00311 
00363       static jdouble atan2(jdouble a, jdouble b);
00364 
00438       static jdouble pow(jdouble a, jdouble b);
00439 
00463       static jint round(jfloat a);
00464 
00488       static jlong round(jdouble a);
00489 
00504       static jint abs(jint a);
00505 
00520       static jlong abs(jlong a);
00521 
00537       static jfloat abs(jfloat a);
00538 
00554       static jdouble abs(jdouble a);
00555 
00568       static jint max(jint a, jint b);
00569 
00582       static jlong max(jlong a, jlong b);
00583 
00599       static jfloat max(jfloat a, jfloat b);
00600 
00616       static jdouble max(jdouble a, jdouble b);
00617 
00629       static jint min(jint a, jint b);
00630 
00643       static jlong min(jlong a, jlong b);
00644 
00660       static jfloat min(jfloat a, jfloat b);
00661 
00677       static jdouble min(jdouble a, jdouble b);
00678 
00679     private:
00680 
00682       Math();
00683   
00684       REGISTER_MEMBERS;
00685   
00686     };
00687 
00688   } // namespace lang
00689 } // namespace java
00690 
00691 #endif /* JAVA_LANG_MATH_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3