Java Doc for EarthConstants.java in  » Science » Cougaar12_4 » org » cougaar » tools » csmart » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.tools.csmart.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.tools.csmart.util.EarthConstants

EarthConstants
final public class EarthConstants (Code)
Interface containing constants for doing math on the Earth: Computing distances between points largely Constants here taken from OpenMap
Files: com.bbn.openmap.proj.ProjMath, com.bbn.openmap.proj.MoreMath com.bbn.openmap.proj.GreatCircle and com.bbn.openmap.proj.Planet
Those files in turn rely in part on John Snyder's Map Projection --A Working Manual
Some routines taken from Cougaar and the class org.cougaar.glm.util.GeoUtils


Field Summary
final public static  floatTWO_PI
    
final public static transient  floatequatorialCircumferenceMeters
    
final public static transient  floatequatorialRadiusMeters
    
final public static transient  floatpolarRadiusMeters
    


Method Summary
public static  floatDistanceBetweenLatLonPoints(LatLonPoint position1, LatLonPoint position2)
    
public static  floatDistanceBetweenPoints(float latitude1, float longitude1, float latitude2, float longitude2)
     Compute great-circle distance in KM between two points on globe expressed as latitude and longitude.
final public static  booleanapproximately_equal(double a, double b, double epsilon)
     Checks if a ~= b.
final public static  booleanapproximately_equal(float a, float b, float epsilon)
     Checks if a ~= b.
final public static  floatarcRadius(float meters)
     Convert the meters distance into arcRadius on the earth.
Parameters:
  meters - distance, should be <= the Earth's Circumference.
final public static  doubledegToRad(double deg)
     Convert degrees to radians.
final public static  floatdegToRad(float deg)
     Convert degrees to radians.
final public static  inthashLatLon(float lat, float lon)
     Generate a hashCode value for a lat/lon pair.
final public static  doubleradToDeg(double rad)
     Convert radians to degrees.
final public static  floatradToDeg(float rad)
     Convert radians to degrees.
final public static  LatLonPointspherical_between(float phi1, float lambda0, float c, float Az)
     Calculate point at azimuth and distance from another point.
final public static  LatLonPointspherical_between(LatLonPoint point, float c, float Az)
     Calculate point at azimuth and distance from another point.
final public static  LatLonPointspherical_between_degs(float lat, float lon, float c, float Az)
     Calculate point at azimuth and distance from another point.
final public static  floatspherical_distance(float phi1, float lambda0, float phi, float lambda)
     Calculate spherical arc distance between two points.

Computes arc distance `c' on the sphere.

final public static  floatspherical_distance(LatLonPoint p1, LatLonPoint p2)
     Calculate spherical arc distance between two points.

Computes arc distance `c' on the sphere.

final public static  floatspherical_distance_deg(float lat1, float lon1, float lat2, float lon2)
     Calculate spherical arc distance between two points.

Computes arc distance `c' on the sphere.


Field Detail
TWO_PI
final public static float TWO_PI(Code)



equatorialCircumferenceMeters
final public static transient float equatorialCircumferenceMeters(Code)



equatorialRadiusMeters
final public static transient float equatorialRadiusMeters(Code)



polarRadiusMeters
final public static transient float polarRadiusMeters(Code)





Method Detail
DistanceBetweenLatLonPoints
public static float DistanceBetweenLatLonPoints(LatLonPoint position1, LatLonPoint position2)(Code)
Compute great-circle distance (expressed as float Kilometers) between two points on globe (expressed as LatLonPoint)
Parameters:
  position1 - LatLonPoint of first point
Parameters:
  position2 - LatLonPoint of second point double distance in KM of great-circle distance between points



DistanceBetweenPoints
public static float DistanceBetweenPoints(float latitude1, float longitude1, float latitude2, float longitude2)(Code)
Compute great-circle distance in KM between two points on globe expressed as latitude and longitude.
Parameters:
  latitude1 - float latitude of first point (decimal degrees)
Parameters:
  longitude1 - float longitude of first point (decimal degrees)
Parameters:
  latitude2 - float latitude of second point (decimal degrees)
Parameters:
  longitude2 - float longitude of second point (decimal degrees) float great-circle distance between two points in KM



approximately_equal
final public static boolean approximately_equal(double a, double b, double epsilon)(Code)
Checks if a ~= b. Use this to test equality of floating point numbers.


Parameters:
  a - double
Parameters:
  b - double
Parameters:
  epsilon - the allowable error boolean




approximately_equal
final public static boolean approximately_equal(float a, float b, float epsilon)(Code)
Checks if a ~= b. Use this to test equality of floating point numbers.


Parameters:
  a - float
Parameters:
  b - float
Parameters:
  epsilon - the allowable error boolean




arcRadius
final public static float arcRadius(float meters)(Code)
Convert the meters distance into arcRadius on the earth.
Parameters:
  meters - distance, should be <= the Earth's Circumference. float radians arc radius (0 < ret <= PI)



degToRad
final public static double degToRad(double deg)(Code)
Convert degrees to radians.
Parameters:
  deg - degrees double radians



degToRad
final public static float degToRad(float deg)(Code)
Convert degrees to radians.
Parameters:
  deg - degrees float radians



hashLatLon
final public static int hashLatLon(float lat, float lon)(Code)
Generate a hashCode value for a lat/lon pair.
Parameters:
  lat - latitude
Parameters:
  lon - longitude int hashcode



radToDeg
final public static double radToDeg(double rad)(Code)
Convert radians to degrees.
Parameters:
  rad - radians double decimal degrees



radToDeg
final public static float radToDeg(float rad)(Code)
Convert radians to degrees.
Parameters:
  rad - radians float decimal degrees



spherical_between
final public static LatLonPoint spherical_between(float phi1, float lambda0, float c, float Az)(Code)
Calculate point at azimuth and distance from another point.

Returns a LatLonPoint at arc distance `c' in direction `Az' from start point.


Parameters:
  phi1 - latitude in radians of start point
Parameters:
  lambda0 - longitude in radians of start point
Parameters:
  c - arc radius in radians (0 < c <= PI)
Parameters:
  Az - azimuth (direction) east of north (-PI <= Az < PI) LatLonPoint




spherical_between
final public static LatLonPoint spherical_between(LatLonPoint point, float c, float Az)(Code)
Calculate point at azimuth and distance from another point.

Returns a LatLonPoint at arc distance `c' in direction `Az' from start point.


Parameters:
  point - LatLonPoint of start
Parameters:
  c - arc radius in radians (0 < c <= PI)
Parameters:
  Az - azimuth (direction) east of north (-PI <= Az < PI) in radians LatLonPoint




spherical_between_degs
final public static LatLonPoint spherical_between_degs(float lat, float lon, float c, float Az)(Code)
Calculate point at azimuth and distance from another point.

Returns a LatLonPoint at arc distance `c' in direction `Az' from start point.


Parameters:
  lat - latitude in degrees of start point
Parameters:
  lon - longitude in degrees of start point
Parameters:
  c - arc radius in radians (0 < c <= PI)
Parameters:
  Az - azimuth (direction) east of north (-PI <= Az < PI) LatLonPoint




spherical_distance
final public static float spherical_distance(float phi1, float lambda0, float phi, float lambda)(Code)
Calculate spherical arc distance between two points.

Computes arc distance `c' on the sphere. equation (5-3a). (0 <= c <= PI)


Parameters:
  phi1 - latitude in radians of start point
Parameters:
  lambda0 - longitude in radians of start point
Parameters:
  phi - latitude in radians of end point
Parameters:
  lambda - longitude in radians of end point float arc distance `c' in radians




spherical_distance
final public static float spherical_distance(LatLonPoint p1, LatLonPoint p2)(Code)
Calculate spherical arc distance between two points.

Computes arc distance `c' on the sphere. equation (5-3a). (0 <= c <= PI)


Parameters:
  p1 - LatLonPoint of first point
Parameters:
  p2 - LatLonPoint of second point float arc distance `c' in radians




spherical_distance_deg
final public static float spherical_distance_deg(float lat1, float lon1, float lat2, float lon2)(Code)
Calculate spherical arc distance between two points.

Computes arc distance `c' on the sphere. equation (5-3a). (0 <= c <= PI)


Parameters:
  lat1 - latitude in degrees of start point
Parameters:
  lon1 - longitude in degrees of start point
Parameters:
  lat2 - latitude in degrees of end point
Parameters:
  lon2 - longitude in degrees of end point float arc distance `c' in radians




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.