|
From: <de...@us...> - 2003-06-10 22:31:05
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Include/SimData
In directory sc8-pr-cvs1:/tmp/cvs-serv2655
Modified Files:
Math.h
Log Message:
see CHANGES.curent
Index: Math.h
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/Math.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Math.h 12 Apr 2003 08:56:37 -0000 1.4
--- Math.h 10 Jun 2003 22:31:00 -0000 1.5
***************
*** 52,55 ****
--- 52,78 ----
+ double const FtInM = 0.3048;
+ double const MInFt = 3.2808;
+
+ inline double FeetToMeters(double feet) {
+ return FtInM * feet;
+ }
+
+ inline double MetersToFeet(double meters) {
+ return MInFt * meters;
+ }
+
+ double const PdsToN = 4.44822;
+
+ double const NToPds = 0.22481;
+
+ inline double PoundsToNewtons(double pds) {
+ return PdsToN * pds;
+ }
+
+ inline double NewtonsToPounds(double newtonw) {
+ return NToPds * newtonw;
+ }
+
NAMESPACE_END // namespace simdata
|