Java Doc for Angle.java in  » GIS » openjump » com » vividsolutions » jump » geom » 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 » GIS » openjump » com.vividsolutions.jump.geom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.vividsolutions.jump.geom.Angle

Angle
public class Angle (Code)
Utility functions for working with angles.


Field Summary
public static  intCLOCKWISE
    
public static  intCOUNTERCLOCKWISE
    
public static  intNONE
    
final public static  doublePI_OVER_2
    
final public static  doublePI_OVER_4
    
final public static  doublePI_TIMES_2
    


Method Summary
public static  doubleangle(Coordinate p0, Coordinate p1)
     Returns the angle of the vector from p0 to p1.
public static  doubleangle(Coordinate p)
     Returns the angle of the vector from (0,) to p.
public static  doubleangleBetween(Coordinate tail, Coordinate tip1, Coordinate tip2)
     Returns the angle between two vectors.
public static  doublediff(double a1, double a2)
     Returns the angle between two vectors.
public static  intgetTurn(double a1, double a2)
     Returns whether an angle must turn clockwise or counterclockwise to overlap another angle.
public static  doubleinteriorAngle(Coordinate p0, Coordinate p1, Coordinate p2)
     Computes the interior angle between two segments of a ring.
public static  doublenormalize(double angle)
     Computes the normalized value of an angle, which is the equivalent angle lying between -Pi and Pi.
public static  doubletoDegrees(double radians)
     Converts from radians to degrees.
public static  doubletoRadians(double angleDegrees)
     Converts from degrees to radians.

Field Detail
CLOCKWISE
public static int CLOCKWISE(Code)
General constant representing clockwise orientation



COUNTERCLOCKWISE
public static int COUNTERCLOCKWISE(Code)
General constant representing counterclockwise orientation



NONE
public static int NONE(Code)
General constant representing no orientation



PI_OVER_2
final public static double PI_OVER_2(Code)



PI_OVER_4
final public static double PI_OVER_4(Code)



PI_TIMES_2
final public static double PI_TIMES_2(Code)





Method Detail
angle
public static double angle(Coordinate p0, Coordinate p1)(Code)
Returns the angle of the vector from p0 to p1. The angle will be between -Pi and Pi. the angle (in radians) that p0-p1 makes with the positive x-axis.



angle
public static double angle(Coordinate p)(Code)
Returns the angle of the vector from (0,) to p. The angle will be between -Pi and Pi. the angle (in radians) that p makes with the positive x-axis.



angleBetween
public static double angleBetween(Coordinate tail, Coordinate tip1, Coordinate tip2)(Code)
Returns the angle between two vectors. Will be between 0 and Pi.
Parameters:
  tail - the tail of each vector
Parameters:
  tip1 - the tip of one vector
Parameters:
  tip2 - the tip of the other vector the angle between tail-tip1 and tail-tip2



diff
public static double diff(double a1, double a2)(Code)
Returns the angle between two vectors.
Parameters:
  a1 - the angle of one vector, between -Pi and Pi
Parameters:
  a2 - the angle of the other vector, between -Pi and Pi the angle (in radians) between the two vectors, between 0 and Pi



getTurn
public static int getTurn(double a1, double a2)(Code)
Returns whether an angle must turn clockwise or counterclockwise to overlap another angle.
Parameters:
  a1 - an angle in radians
Parameters:
  a2 - an angle in radians whether a1 must turn CLOCKWISE, COUNTERCLOCKWISE or NONE tooverlap a2.



interiorAngle
public static double interiorAngle(Coordinate p0, Coordinate p1, Coordinate p2)(Code)
Computes the interior angle between two segments of a ring. The ring is assumed to be oriented in a clockwise direction.
Parameters:
  p0 - a point of the ring
Parameters:
  p1 - the next point of the ring
Parameters:
  p2 - the next point of the ring the interior angle based at p1



normalize
public static double normalize(double angle)(Code)
Computes the normalized value of an angle, which is the equivalent angle lying between -Pi and Pi.
Parameters:
  angle - the angle to compute the normalized value of the normalized value of the angle



toDegrees
public static double toDegrees(double radians)(Code)
Converts from radians to degrees.
Parameters:
  radians - an angle in radians the angle in degrees



toRadians
public static double toRadians(double angleDegrees)(Code)
Converts from degrees to radians.
Parameters:
  angleDegrees - an angle in degrees the angle 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.