00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Jeff Lait 00008 * Side Effects Software Inc 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: UT_EllipticIntegral.h ( UT Library, C++) 00015 * 00016 * COMMENTS: 00017 * Performs elliptical integrals of various types. 00018 */ 00019 00020 #ifndef __UT_EllipticIntegral__ 00021 #define __UT_EllipticIntegral__ 00022 00023 #include "UT_API.h" 00024 #include <SYS/SYS_Types.h> 00025 00026 // Find the perimeter of the ellipse of the specified axes. 00027 UT_API fpreal 00028 UTellipsePerimeter(fpreal a, fpreal b); 00029 00030 // Find the surface area of a sphereoid with axes a, b, and c. 00031 // iter is the number of samples to take for the integration. 00032 // As a closed form solution is currently used, it is unnecessary. 00033 UT_API fpreal 00034 UTspheroidArea(fpreal a, fpreal b, fpreal c, int iter=32); 00035 00036 #endif 00037
1.5.9