public class ArrayPoint extends Object implements Point
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
point |
| Constructor and Description |
|---|
ArrayPoint()
Default constructor
|
ArrayPoint(double[] point)
Constructor from an array of double values
|
ArrayPoint(int dimension)
Constructor
|
ArrayPoint(Point point)
Copy constructor
|
ArrayPoint(String fileName)
Constructor reading the values from a file
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getDimension() |
double |
getValue(int index) |
double[] |
getValues() |
int |
hashCode() |
void |
setValue(int index,
double value) |
String |
toString() |
void |
update(double[] point) |
public ArrayPoint()
public ArrayPoint(int dimension)
dimension - Dimension of the pointpublic ArrayPoint(Point point)
point - public ArrayPoint(double[] point)
point - public ArrayPoint(String fileName) throws IOException
fileName - IOExceptionpublic int getDimension()
getDimension in interface PointCopyright © 2019. All rights reserved.