Java Doc for Numerics.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » geometry » 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 » 6.0 JDK Modules » java 3d » com.sun.j3d.utils.geometry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.geometry.Numerics

Numerics
class Numerics (Code)




Method Summary
static  doubleangle(Triangulator triRef, Point2f p, Point2f p1, Point2f p2)
     computes the signed angle between p, p1 and p, p2.
static  doublebaseLength(Tuple2f u, Tuple2f v)
    
static  booleaneq(double a, double eps)
    
static  booleange(double a, double eps)
    
static  doublegetRatio(Triangulator triRef, int i, int j, int k)
     this function computes a quality measure of a triangle i, j, k. it returns the ratio `base / height', where base is the length of the longest side of the triangle, and height is the normal distance between the vertex opposite of the base side and the base side.
static  booleangt(double a, double eps)
    
static  booleaninBetween(int i1, int i2, int i3)
     This checks whether i3, which is collinear with i1, i2, is between i1, i2.
static  intisConvexAngle(Triangulator triRef, int i, int j, int k, int ind)
     Returns convex angle flag. 0 ...
static  booleanisInCone(Triangulator triRef, int i, int j, int k, int l, boolean convex)
    
static  booleanle(double a, double eps)
    
static  booleanlt(double a, double eps)
    
static  doublemax3(double a, double b, double c)
    
static  doublemin3(double a, double b, double c)
    
static  intorientation(Triangulator triRef, int i, int j, int k)
     Returns the orientation of the triangle.
static  booleanpntInTriangle(Triangulator triRef, int i1, int i2, int i3, int i4)
     This method checks whether point i4 is inside of or on the boundary of the triangle i1, i2, i3.
static  intrecSpikeAngle(Triangulator triRef, int i1, int i2, int i3, int ind1, int ind3)
    
static  booleansegIntersect(Triangulator triRef, int i1, int i2, int i3, int i4, int i5)
     Checks whether the line segments i1, i2 and i3, i4 intersect.
static  doublesideLength(Tuple2f u, Tuple2f v)
    
static  intspikeAngle(Triangulator triRef, int i, int j, int k, int ind)
    
static  doublestableDet2D(Triangulator triRef, int i, int j, int k)
     this method computes the determinant det(points[i],points[j],points[k]) in a consistent way.
static  booleanstrictlyInBetween(int i1, int i2, int i3)
    
static  booleanvtxInTriangle(Triangulator triRef, int i1, int i2, int i3, int i4, int[] type)
     This method checks whether point i4 is inside of or on the boundary of the triangle i1, i2, i3.



Method Detail
angle
static double angle(Triangulator triRef, Point2f p, Point2f p1, Point2f p2)(Code)
computes the signed angle between p, p1 and p, p2. warning: this function does not handle a 180-degree angle correctly! (this is no issue in our application, as we will always compute the angle centered at the mid-point of a valid diagonal.)



baseLength
static double baseLength(Tuple2f u, Tuple2f v)(Code)



eq
static boolean eq(double a, double eps)(Code)



ge
static boolean ge(double a, double eps)(Code)



getRatio
static double getRatio(Triangulator triRef, int i, int j, int k)(Code)
this function computes a quality measure of a triangle i, j, k. it returns the ratio `base / height', where base is the length of the longest side of the triangle, and height is the normal distance between the vertex opposite of the base side and the base side. (as usual, we again use the l1-norm for distances.)



gt
static boolean gt(double a, double eps)(Code)



inBetween
static boolean inBetween(int i1, int i2, int i3)(Code)
This checks whether i3, which is collinear with i1, i2, is between i1, i2. note that we rely on the lexicographic sorting of the points!



isConvexAngle
static int isConvexAngle(Triangulator triRef, int i, int j, int k, int ind)(Code)
Returns convex angle flag. 0 ... if angle is 180 degrees
1 ... if angle between 0 and 180 degrees
2 ... if angle is 0 degrees
-1 ... if angle between 180 and 360 degrees
-2 ... if angle is 360 degrees



isInCone
static boolean isInCone(Triangulator triRef, int i, int j, int k, int l, boolean convex)(Code)
This method checks whether l is in the cone defined by i, j and j, k



le
static boolean le(double a, double eps)(Code)



lt
static boolean lt(double a, double eps)(Code)



max3
static double max3(double a, double b, double c)(Code)



min3
static double min3(double a, double b, double c)(Code)



orientation
static int orientation(Triangulator triRef, int i, int j, int k)(Code)
Returns the orientation of the triangle. +1 if the points i, j, k are given in CCW order;-1 if the points i, j, k are given in CW order;0 if the points i, j, k are collinear.



pntInTriangle
static boolean pntInTriangle(Triangulator triRef, int i1, int i2, int i3, int i4)(Code)
This method checks whether point i4 is inside of or on the boundary of the triangle i1, i2, i3.



recSpikeAngle
static int recSpikeAngle(Triangulator triRef, int i1, int i2, int i3, int ind1, int ind3)(Code)



segIntersect
static boolean segIntersect(Triangulator triRef, int i1, int i2, int i3, int i4, int i5)(Code)
Checks whether the line segments i1, i2 and i3, i4 intersect. no intersection is reported if they intersect at a common vertex. the function assumes that i1 <= i2 and i3 <= i4. if i3 or i4 lies on i1, i2 then an intersection is reported, but no intersection is reported if i1 or i2 lies on i3, i4. this function is not symmetric!



sideLength
static double sideLength(Tuple2f u, Tuple2f v)(Code)



spikeAngle
static int spikeAngle(Triangulator triRef, int i, int j, int k, int ind)(Code)



stableDet2D
static double stableDet2D(Triangulator triRef, int i, int j, int k)(Code)
this method computes the determinant det(points[i],points[j],points[k]) in a consistent way.



strictlyInBetween
static boolean strictlyInBetween(int i1, int i2, int i3)(Code)



vtxInTriangle
static boolean vtxInTriangle(Triangulator triRef, int i1, int i2, int i3, int i4, int[] type)(Code)
This method checks whether point i4 is inside of or on the boundary of the triangle i1, i2, i3. it also returns a classification if i4 is on the boundary of the triangle (except for the edge i2, i3).



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.