java.lang.Object
org.jfree.chart3d.graphics3d.Dimension3D
- All Implemented Interfaces:
Serializable
A dimension in 3D (width, height and depth). Instances of this class
are immutable.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDimension3D
(double width, double height, double depth) Creates a newDimension3D
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this instance for equality with an arbitrary object.double
getDepth()
Returns the depth.double
Returns the length of a diagonal from one corner of the box to another.double
Returns the height.double
getWidth()
Returns the width.int
hashCode()
Returns a hash code for this instance.toString()
Returns a string representation of this instance, primarily for debugging purposes.
-
Constructor Details
-
Dimension3D
Creates a newDimension3D
instance. Instances of this class are immutable.- Parameters:
width
- the width.height
- the height.depth
- the depth.
-
-
Method Details
-
getWidth
Returns the width.- Returns:
- The width.
-
getHeight
Returns the height.- Returns:
- The height.
-
getDepth
Returns the depth.- Returns:
- The depth.
-
getDiagonalLength
Returns the length of a diagonal from one corner of the box to another.- Returns:
- The length.
-
equals
Tests this instance for equality with an arbitrary object. -
hashCode
Returns a hash code for this instance. -
toString
Returns a string representation of this instance, primarily for debugging purposes.
-