Class DoubleDimension
-
- All Implemented Interfaces:
-
java.lang.Cloneable
public final class DoubleDimension extends Dimension2D
Implementation of the Dimension2D abstract class with double precision.
-
-
Constructor Summary
Constructors Constructor Description DoubleDimension()
Initializes a new DoubleDimension
instance with both width and height set to zero.DoubleDimension(Dimension2D d)
Initializes a new DoubleDimension
instance using another Dimension2D object's data.DoubleDimension(double w, double h)
Initializes a new DoubleDimension
using raw data.DoubleDimension(Array<double> d)
Initializes a new DoubleDimension
through an array of numbers.
-
Method Summary
-
-
Constructor Detail
-
DoubleDimension
DoubleDimension()
Initializes a newDoubleDimension
instance with both width and height set to zero.
-
DoubleDimension
DoubleDimension(Dimension2D d)
Initializes a newDoubleDimension
instance using another Dimension2D object's data.- Parameters:
d
- is the objects used to get the data
-
DoubleDimension
DoubleDimension(double w, double h)
Initializes a newDoubleDimension
using raw data.- Parameters:
w
- is thedouble
containing the widthh
- is thedouble
containing the height
-
-
-
-