Java Doc for HiResCoord.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » 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 » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.j3d.HiResCoord

HiResCoord
public class HiResCoord (Code)
The HiResCoord object specifies the location of scene components within the Virtual Universe. The coordinates of all scene graph objects are relative to the HiResCoord of the Locale in which they are contained.

The HiResCoord defines a point using a set of three high-resolution coordinates, each of which consists of three two's-complement fixed-point numbers. Each high-resolution number consists of 256 total bits with a binary point at bit 128, or between the integers at index 3 and 4. A high-resolution coordinate of 1.0 is defined to be exactly 1 meter. This coordinate system is sufficient to describe a universe in excess of several billion light years across, yet still define objects smaller than a proton.

Java 3D uses integer arrays of length eight to define or extract a single 256-bit coordinate value. Java 3D interprets the integer at index 0 as the 32 most-significant bits and the integer at index 7 as the 32 least-significant bits.



Field Summary
 intx
     The eight-element array containing the high resolution coordinate's x value.
 inty
     The eight-element array containing the high resolution coordinate's y value.
 intz
     The eight-element array containing the high resolution coordinate's z value.

Constructor Summary
public  HiResCoord(int[] X, int[] Y, int[] Z)
     Constructs and initializes a new HiResCoord using the values provided in the argument.
public  HiResCoord(HiResCoord hc)
     Constructs and initializes a new HiResCoord using the values provided in the argument.
public  HiResCoord()
     Constructs and initializes a new HiResCoord located at (0, 0, 0).

Method Summary
public  voidadd(HiResCoord h1, HiResCoord h2)
     Adds two HiResCoords placing the results into this HiResCoord.
public  voiddifference(HiResCoord h1, Vector3d v)
     Subtracts the specified HiResCoord from this HiResCoord placing the difference vector into the specified double-precision vector.
public  doubledistance(HiResCoord h1)
     The floating point distance between the specified HiResCoord and this HiResCoord.
public  booleanequals(HiResCoord h1)
     Compares the specified HiResCoord to this HiResCoord.
public  booleanequals(Object o1)
     Returns true if the Object o1 is of type HiResCoord and all of the data members of o1 are equal to the corresponding data members in this HiResCoord.
public  voidgetHiResCoord(int[] X, int[] Y, int[] Z)
     Retrieves this HiResCoord's location and saves the coordinates in the specified arrays.
public  voidgetHiResCoord(HiResCoord hc)
     Retrieves this HiResCoord's location and places it into the hires argument.
public  voidgetHiResCoordX(int[] X)
     Retrieves this HiResCoord's X value and stores it in the specified array.
public  voidgetHiResCoordY(int[] Y)
     Retrieves this HiResCoord's Y value and stores it in the specified array.
public  voidgetHiResCoordZ(int[] Z)
     Retrieves this HiResCoord's Z value and stores it in the specified array.
public  voidnegate(HiResCoord h1)
     Negates the specified HiResCoords and places the results into this HiResCoord.
public  voidnegate()
    
public  voidscale(int scale, HiResCoord h1)
     Scales the specified HiResCoords by the specified value and places the results into this HiResCoord.
public  voidscale(int scale)
     Scales this HiResCoord by the specified value.
public  voidsetHiResCoord(int[] X, int[] Y, int[] Z)
     Sets this HiResCoord to the location specified by the parameters provided.
public  voidsetHiResCoord(HiResCoord hires)
     Sets this HiResCoord to the location specified by the hires provided.
public  voidsetHiResCoordX(int[] X)
     Sets this HiResCoord's X value to that specified by the argument.
public  voidsetHiResCoordY(int[] Y)
     Sets this HiResCoord's Y value to that specified by the argument.
public  voidsetHiResCoordZ(int[] Z)
     Sets this HiResCoord's Z value to that specified by the argument.
public  voidsub(HiResCoord h1, HiResCoord h2)
     Subtracts two HiResCoords placing the results into this HiResCoord.

Field Detail
x
int x(Code)
The eight-element array containing the high resolution coordinate's x value.



y
int y(Code)
The eight-element array containing the high resolution coordinate's y value.



z
int z(Code)
The eight-element array containing the high resolution coordinate's z value.




Constructor Detail
HiResCoord
public HiResCoord(int[] X, int[] Y, int[] Z)(Code)
Constructs and initializes a new HiResCoord using the values provided in the argument. The HiResCoord represents 768 bits of floating point 3-Space.
Parameters:
  X - an eight element array specifying the x position
Parameters:
  Y - an eight element array specifying the y position
Parameters:
  Z - an eight element array specifying the z position



HiResCoord
public HiResCoord(HiResCoord hc)(Code)
Constructs and initializes a new HiResCoord using the values provided in the argument. The HiResCoord represents 768 bits of floating point 3-Space.
Parameters:
  hc - the HiResCoord to copy



HiResCoord
public HiResCoord()(Code)
Constructs and initializes a new HiResCoord located at (0, 0, 0). The HiResCoord represents 768 bits of floating point 3-Space.




Method Detail
add
public void add(HiResCoord h1, HiResCoord h2)(Code)
Adds two HiResCoords placing the results into this HiResCoord.
Parameters:
  h1 - the first HiResCoord
Parameters:
  h2 - the second HiResCoord



difference
public void difference(HiResCoord h1, Vector3d v)(Code)
Subtracts the specified HiResCoord from this HiResCoord placing the difference vector into the specified double-precision vector.
Parameters:
  h1 - the HiResCoord to be subtracted from this
Parameters:
  v - the vector that will receive the result



distance
public double distance(HiResCoord h1)(Code)
The floating point distance between the specified HiResCoord and this HiResCoord.
Parameters:
  h1 - the second HiResCoord



equals
public boolean equals(HiResCoord h1)(Code)
Compares the specified HiResCoord to this HiResCoord.
Parameters:
  h1 - the second HiResCoord true if equal, false if not equal



equals
public boolean equals(Object o1)(Code)
Returns true if the Object o1 is of type HiResCoord and all of the data members of o1 are equal to the corresponding data members in this HiResCoord.
Parameters:
  o1 - the second HiResCoord true if equal, false if not equal



getHiResCoord
public void getHiResCoord(int[] X, int[] Y, int[] Z)(Code)
Retrieves this HiResCoord's location and saves the coordinates in the specified arrays. The arrays must be large enough to hold all of the ints.
Parameters:
  X - an eight element array that will receive the x position
Parameters:
  Y - an eight element array that will receive the y position
Parameters:
  Z - an eight element array that will receive the z position



getHiResCoord
public void getHiResCoord(HiResCoord hc)(Code)
Retrieves this HiResCoord's location and places it into the hires argument.
Parameters:
  hc - the hires coordinate that will receive this node's location



getHiResCoordX
public void getHiResCoordX(int[] X)(Code)
Retrieves this HiResCoord's X value and stores it in the specified array. The array must be large enough to hold all of the ints.
Parameters:
  X - an eight-element array that will receive the x position



getHiResCoordY
public void getHiResCoordY(int[] Y)(Code)
Retrieves this HiResCoord's Y value and stores it in the specified array. The array must be large enough to hold all of the ints.
Parameters:
  Y - an eight-element array that will receive the y position



getHiResCoordZ
public void getHiResCoordZ(int[] Z)(Code)
Retrieves this HiResCoord's Z value and stores it in the specified array. The array must be large enough to hold all of the ints.
Parameters:
  Z - an eight-element array that will receive the z position



negate
public void negate(HiResCoord h1)(Code)
Negates the specified HiResCoords and places the results into this HiResCoord.
Parameters:
  h1 - the source HiResCoord



negate
public void negate()(Code)
Negates this HiResCoord



scale
public void scale(int scale, HiResCoord h1)(Code)
Scales the specified HiResCoords by the specified value and places the results into this HiResCoord.
Parameters:
  scale - the amount to scale the specified HiResCoord
Parameters:
  h1 - the source HiResCoord



scale
public void scale(int scale)(Code)
Scales this HiResCoord by the specified value.
Parameters:
  scale - the amount to scale the specified HiResCoord



setHiResCoord
public void setHiResCoord(int[] X, int[] Y, int[] Z)(Code)
Sets this HiResCoord to the location specified by the parameters provided.
Parameters:
  X - an eight-element array specifying the x position
Parameters:
  Y - an eight-element array specifying the y position
Parameters:
  Z - an eight-element array specifying the z position



setHiResCoord
public void setHiResCoord(HiResCoord hires)(Code)
Sets this HiResCoord to the location specified by the hires provided.
Parameters:
  hires - the hires coordinate to copy



setHiResCoordX
public void setHiResCoordX(int[] X)(Code)
Sets this HiResCoord's X value to that specified by the argument.
Parameters:
  X - an eight-element array specifying the x position



setHiResCoordY
public void setHiResCoordY(int[] Y)(Code)
Sets this HiResCoord's Y value to that specified by the argument.
Parameters:
  Y - an eight-element array specifying the y position



setHiResCoordZ
public void setHiResCoordZ(int[] Z)(Code)
Sets this HiResCoord's Z value to that specified by the argument.
Parameters:
  Z - an eight-element array specifying the z position



sub
public void sub(HiResCoord h1, HiResCoord h2)(Code)
Subtracts two HiResCoords placing the results into this HiResCoord.
Parameters:
  h1 - the first HiResCoord
Parameters:
  h2 - the second HiResCoord



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.