Class anim.Point3D
All Packages Class Hierarchy This Package Previous Next Index
Class anim.Point3D
java.lang.Object
|
+----anim.Point3D
- public class Point3D
- extends Object
A 3D Point
Copyright (c) 1996-1997 Intel Corporation
- See Also:
- Point
-
x
- variables that store the internal state of the 3D point
-
y
-
-
z
-
-
Point3D()
- Default constructor.
-
Point3D(int, int)
- Constructor using passed in x,y coords.
-
Point3D(int, int, int)
- Constructor using passed in x,y,z coords
-
Point3D(Point3D)
- Constructor using passed in Point3D
-
add(int, int)
- Adds a displacement to a 3D point.
-
add(int, int, int)
- Adds a displacement to a 3D point.
-
add(Point)
- Adds a displacement to a 3D point.
-
add(Point3D)
- Adds a displacement to a 3D point.
-
equals(int, int)
- Tests if the (x,y) components of the 3D point is equal
to the passed in point.
-
equals(int, int, int)
- Tests if the 3D point is equal to the passed in point.
-
equals(Point)
- Tests if the (x,y) components of the 3D point is equal
to the passed in point.
-
equals(Point3D)
- Tests if the 3D point is equal to the passed in point.
-
getPoint()
- returns the x,y components of this point in a awt Point
-
subtract(int, int)
- subtracts a displacement to a 3D point.
-
subtract(int, int, int)
- subtracts a displacement to a 3D point.
-
subtract(Point)
- subtracts a displacement to a 3D point.
-
subtract(Point3D)
- subtracts a displacement to a 3D point.
-
toString()
-
x
public int x
- variables that store the internal state of the 3D point
y
public int y
z
public int z
Point3D
public Point3D(int x,
int y,
int z)
- Constructor using passed in x,y,z coords
Point3D
public Point3D(int x,
int y)
- Constructor using passed in x,y coords. The third coordinate is
set to zero
Point3D
public Point3D()
- Default constructor. Sets all coord to 0.
Point3D
public Point3D(Point3D point)
- Constructor using passed in Point3D
add
public void add(Point3D displacement)
- Adds a displacement to a 3D point.
Where the displacement is another 3D point.
add
public void add(int x,
int y,
int z)
- Adds a displacement to a 3D point.
Where the displacement is another point represented by (x,y,z).
add
public void add(Point displacement)
- Adds a displacement to a 3D point.
Where the displacement is a regular awt 2D point.
add
public void add(int x,
int y)
- Adds a displacement to a 3D point.
Where the displacement is a 2D point represented by (x,y).
subtract
public void subtract(Point3D displacement)
- subtracts a displacement to a 3D point.
Where the displacement is another 3D point.
subtract
public void subtract(int x,
int y,
int z)
- subtracts a displacement to a 3D point.
Where the displacement is another point represented by (x,y,z).
subtract
public void subtract(Point displacement)
- subtracts a displacement to a 3D point.
Where the displacement is a regular awt 2D point.
subtract
public void subtract(int x,
int y)
- subtracts a displacement to a 3D point.
Where the displacement is a 2D point represented by (x,y).
equals
public boolean equals(Point3D test)
- Tests if the 3D point is equal to the passed in point.
Where the passed in point is another 3D point.
equals
public boolean equals(int x,
int y,
int z)
- Tests if the 3D point is equal to the passed in point.
Where the passed in point is another 3D point in (x,y,z) form.
equals
public boolean equals(Point test)
- Tests if the (x,y) components of the 3D point is equal
to the passed in point.
Where the passed in point is a regular 2D awt Point.
equals
public boolean equals(int x,
int y)
- Tests if the (x,y) components of the 3D point is equal
to the passed in point.
Where the passed in point is in (x,y) representation
getPoint
public Point getPoint()
- returns the x,y components of this point in a awt Point
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index