Java Doc for Crossing.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » gl » 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 » Apache Harmony Java SE » org package » org.apache.harmony.awt.gl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.awt.gl.Crossing

Crossing
public class Crossing (Code)

Inner Class :public static class QuadCurve
Inner Class :public static class CubicCurve

Field Summary
final public static  intCROSSING
    
final static  doubleDELTA
    
final static  doubleROOT_DELTA
    
final static  intUNKNOWN
    


Method Summary
static  intcrossBound(double bound, int bc, double py1, double py2)
    
public static  intcrossCubic(double x1, double y1, double cx1, double cy1, double cx2, double cy2, double x2, double y2, double x, double y)
    
public static  intcrossLine(double x1, double y1, double x2, double y2, double x, double y)
     Returns how many times ray from point (x,y) cross line.
public static  intcrossPath(PathIterator p, double x, double y)
    
public static  intcrossQuad(double x1, double y1, double cx, double cy, double x2, double y2, double x, double y)
    
public static  intcrossShape(Shape s, double x, double y)
    
static  intfixRoots(double res, int rc)
     Excludes double roots.
public static  intintersectCubic(double x1, double y1, double cx1, double cy1, double cx2, double cy2, double x2, double y2, double rx1, double ry1, double rx2, double ry2)
    
public static  intintersectLine(double x1, double y1, double x2, double y2, double rx1, double ry1, double rx2, double ry2)
    
public static  intintersectPath(PathIterator p, double x, double y, double w, double h)
    
public static  intintersectQuad(double x1, double y1, double cx, double cy, double x2, double y2, double rx1, double ry1, double rx2, double ry2)
    
public static  intintersectShape(Shape s, double x, double y, double w, double h)
    
public static  booleanisInsideEvenOdd(int cross)
    
public static  booleanisInsideNonZero(int cross)
    
public static  booleanisZero(double val)
    
public static  intsolveCubic(double eqn, double res)
    
public static  intsolveQuad(double eqn, double res)
    
static  voidsortBound(double bound, int bc)
    

Field Detail
CROSSING
final public static int CROSSING(Code)
Rectangle cross segment



DELTA
final static double DELTA(Code)
Allowable tolerance for bounds comparison



ROOT_DELTA
final static double ROOT_DELTA(Code)
If roots have distance less then ROOT_DELTA they are double



UNKNOWN
final static int UNKNOWN(Code)
Unknown crossing result





Method Detail
crossBound
static int crossBound(double bound, int bc, double py1, double py2)(Code)
Returns are bounds intersect or not intersect rectangle



crossCubic
public static int crossCubic(double x1, double y1, double cx1, double cy1, double cx2, double cy2, double x2, double y2, double x, double y)(Code)
Returns how many times ray from point (x,y) cross cubic curve



crossLine
public static int crossLine(double x1, double y1, double x2, double y2, double x, double y)(Code)
Returns how many times ray from point (x,y) cross line.



crossPath
public static int crossPath(PathIterator p, double x, double y)(Code)
Returns how many times ray from point (x,y) cross path



crossQuad
public static int crossQuad(double x1, double y1, double cx, double cy, double x2, double y2, double x, double y)(Code)
Returns how many times ray from point (x,y) cross quard curve



crossShape
public static int crossShape(Shape s, double x, double y)(Code)
Returns how many times ray from point (x,y) cross shape



fixRoots
static int fixRoots(double res, int rc)(Code)
Excludes double roots. Roots are double if they lies enough close with each other.
Parameters:
  res - - the roots
Parameters:
  rc - - the roots count new roots count



intersectCubic
public static int intersectCubic(double x1, double y1, double cx1, double cy1, double cx2, double cy2, double x2, double y2, double rx1, double ry1, double rx2, double ry2)(Code)
Returns how many times rectangle stripe cross cubic curve or the are intersect



intersectLine
public static int intersectLine(double x1, double y1, double x2, double y2, double rx1, double ry1, double rx2, double ry2)(Code)
Returns how many times rectangle stripe cross line or the are intersect



intersectPath
public static int intersectPath(PathIterator p, double x, double y, double w, double h)(Code)
Returns how many times rectangle stripe cross path or the are intersect



intersectQuad
public static int intersectQuad(double x1, double y1, double cx, double cy, double x2, double y2, double rx1, double ry1, double rx2, double ry2)(Code)
Returns how many times rectangle stripe cross quad curve or the are intersect



intersectShape
public static int intersectShape(Shape s, double x, double y, double w, double h)(Code)
Returns how many times rectangle stripe cross shape or the are intersect



isInsideEvenOdd
public static boolean isInsideEvenOdd(int cross)(Code)
Returns true if cross count correspond inside location for even-odd path rule



isInsideNonZero
public static boolean isInsideNonZero(int cross)(Code)
Returns true if cross count correspond inside location for non zero path rule



isZero
public static boolean isZero(double val)(Code)
Returns true if value enough small



solveCubic
public static int solveCubic(double eqn, double res)(Code)
Solves cubic equation
Parameters:
  eqn - - the coefficients of the equation
Parameters:
  res - - the roots of the equation a number of roots



solveQuad
public static int solveQuad(double eqn, double res)(Code)
Solves quadratic equation
Parameters:
  eqn - - the coefficients of the equation
Parameters:
  res - - the roots of the equation a number of roots



sortBound
static void sortBound(double bound, int bc)(Code)
Sort bound array



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.