Package org.hipparchus.util
Class DoublePoint
java.lang.Object
org.hipparchus.util.DoublePoint
- All Implemented Interfaces:
Serializable,DataPoint
A simple implementation of
DataPoint for points with double coordinates.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDoublePoint(double[] point) Build an instance wrapping an double array.DoublePoint(int[] point) Build an instance wrapping an integer array. -
Method Summary
-
Constructor Details
-
DoublePoint
public DoublePoint(double[] point) Build an instance wrapping an double array.The wrapped array is referenced, it is not copied.
- Parameters:
point- the n-dimensional point in double space
-
DoublePoint
public DoublePoint(int[] point) Build an instance wrapping an integer array.The wrapped array is copied to an internal double array.
- Parameters:
point- the n-dimensional point in integer space
-
-
Method Details
-
values
public double[] values()Gets the n-dimensional point.In this implementation of the
DataPointinterface, the method always returns a reference to an internal array. -
equals
-
hashCode
public int hashCode() -
toString
-