Modifier and Type | Method and Description |
---|---|
void |
barycenter(Point_[] points)
Set the current point as the barycenter of an array of points
|
int |
compareCartesian(Point_ o,
int i)
Perform the comparison between the i-th coordinate of two points
|
int |
dimension()
Return the dimension of the space
|
java.lang.Number |
getCartesian(int i)
return the i-th cartesian coordinate of the point
|
void |
linearCombination(Point_[] points,
java.lang.Number[] coefficients)
Set the current point a linear combination of an array of points.
|
Vector_ |
minus(Point_ p)
Return the vector (p-q), where q is the current point
|
void |
setCartesian(int i,
java.lang.Number x)
set the i-th cartesian coordinate
|
void |
setOrigin()
set the coordinates of the origin
|
java.lang.Number |
squareDistance(Point_ p)
Return the square distance ||p-q||^2, where q is the current point
|
java.lang.String |
toString()
Return a string (representation of the point)
|
void |
translateOf(Vector_ v)
Translate the current point according to a vector v
|
java.lang.Number getCartesian(int i)
void setCartesian(int i, java.lang.Number x)
void setOrigin()
void translateOf(Vector_ v)
java.lang.Number squareDistance(Point_ p)
void barycenter(Point_[] points)
void linearCombination(Point_[] points, java.lang.Number[] coefficients)
int dimension()
java.lang.String toString()
toString
in class java.lang.Object
int compareCartesian(Point_ o, int i)