Package quadbase.util
Class Point_3D
java.lang.Object
quadbase.util.Point_3D
- All Implemented Interfaces:
Cloneable
This class contains methods to define and manipulate a 3D Point. The coordinates of the point are
floating point numbers and can represent a relative position in the main chart window.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the two points are the same or not.floatgetX()Get value of x.floatgetY()Get value of y.floatgetZ()Get value of z.inthashCode()Returns the hash code for the object.voidSet the values based on the given point.voidsetX(float f) Set value of x.voidsetY(float f) Set value of y.voidsetZ(float f) Set value of z.toString()Returns the string representation of a 3D point
-
Field Details
-
x
public float xThe x, y, z coordinates. -
y
public float yThe x, y, z coordinates. -
z
public float zThe x, y, z coordinates.
-
-
Constructor Details
-
Point_3D
public Point_3D()Null constructor -
Point_3D
public Point_3D(float _x, float _y, float _z) Constructor based on values -
Point_3D
Copy Constructor based on values
-
-
Method Details
-
toString
Returns the string representation of a 3D point -
equals
Checks if the two points are the same or not. -
hashCode
public int hashCode()Returns the hash code for the object. -
getX
public float getX()Get value of x.- Returns:
- value of x
-
getY
public float getY()Get value of y.- Returns:
- value of y
-
getZ
public float getZ()Get value of z.- Returns:
- value of z
-
setX
public void setX(float f) Set value of x.- Parameters:
f- The x coordinate.
-
setY
public void setY(float f) Set value of y.- Parameters:
f- The y coordinate.
-
setZ
public void setZ(float f) Set value of z.- Parameters:
z- The z coordinate.
-
set
Set the values based on the given point.- Parameters:
p- The input Point_3D object.
-