ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/CAD4FE/src/CAD4FE_Criteria.cpp
Revision: 27
Committed: Thu Jul 5 15:26:40 2007 UTC (17 years, 10 months ago) by foucault
Original Path: magic/lib/CAD4FE/CAD4FE/src/CAD4FE_Criteria.cpp
File size: 816 byte(s)
Log Message:

File Contents

# User Rev Content
1 foucault 27 //---------------------------------------------------------------------------
2    
3    
4     #include <math.h>
5     #include <stdlib.h>
6    
7     #pragma hdrstop
8    
9     #include "CAD4FE_Criteria.h"
10    
11     using namespace CAD4FE;
12    
13    
14     double Criteria::PlanarCurve_EpsilonH(double __h)
15     {
16     return
17     1/__h*
18     (
19     1 -
20     sqrt (1 - .25*pow(__h,2) )
21     );
22     }
23    
24     double Criteria::PlanarCurve_EpsilonBeta(double __beta)
25     { // return __beta*.125;
26     return
27     (
28     1 - sqrt (1 - pow( sin(.5*__beta) , 2) )
29     )
30     /
31     (
32     2*sin(.5*__beta)
33     );
34     }
35    
36     double Criteria::PlanarCurve_BetaEpsilon(double __epsilon)
37     {
38     return 2*asin(__epsilon/(pow(__epsilon,2)+.25));
39     }
40    
41     #pragma package(smart_init)
42