Class cynosurex.graphics3D.Point3D
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cynosurex.graphics3D.Point3D

java.lang.Object
   |
   +----java.awt.Point
           |
           +----cynosurex.graphics3D.Point3D

public class Point3D
extends Point
A point represented in 3D coordination space, e.g. (x, y, z).

Variable Index

 o z
The z coordinate.

Constructor Index

 o Point3D()
Constructs and initializes a Point initialized with (0, 0, 0).
 o Point3D(int, int, int)
Constructs and initializes a Point from the specified x, y, and z coordinates.
 o Point3D(Point3D)
Constructs and initializes a Point with the same location as the specified Point3D.

Method Index

 o equals(Object)
Checks whether two pointers are equal.
 o getLocation()
Returns the location of this point.
 o hashCode()
Returns the hashcode for this Point3D.
 o move(int, int, int)
Changes the point to have the specified location.
 o setLocation(int, int, int)
Changes the point to have the specificed location.
 o toString()
Returns the String representation of this Point's coordinates.
 o translate(int, int, int)
Translates the 3D point.

Variables

 o z
  public int z
The z coordinate.

Constructors

 o Point3D
  public Point3D()
Constructs and initializes a Point initialized with (0, 0, 0).
 o Point3D
  public Point3D(Point3D p)
Constructs and initializes a Point with the same location as the specified Point3D.
Parameters:
p - a point in 3D space
 o Point3D
  public Point3D(int x,
                 int y,
                 int z)
Constructs and initializes a Point from the specified x, y, and z coordinates.
Parameters:
x - the x coordinate
y - the y coordinate
z - the z coordinate

Methods

 o getLocation
  public Point3D getLocation()
Returns the location of this point. This method is included for completeness, to parallel the getLocation method of Component.
 o setLocation
  public void setLocation(int x,
                          int y,
                          int z)
Changes the point to have the specificed location. This method is included for completeness, to parallel the setLocation method of Component.
Parameters:
x - the x coordinate of the new location
y - the y coordinate of the new location
z - the z coordinate of the new location
 o move
  public void move(int x,
                   int y,
                   int z)
Changes the point to have the specified location.
Parameters:
x - the x coordinate of the new location
y - the y coordinate of the new location
z - the z coordinate of the new location
 o translate
  public void translate(int x,
                        int y,
                        int z)
Translates the 3D point.
 o hashCode
  public int hashCode()
Returns the hashcode for this Point3D.
Overrides:
hashCode in class Point
 o equals
  public boolean equals(Object obj)
Checks whether two pointers are equal.
Overrides:
equals in class Point
 o toString
  public String toString()
Returns the String representation of this Point's coordinates.
Overrides:
toString in class Point

All Packages  Class Hierarchy  This Package  Previous  Next  Index