|
AlgART Home | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CoordinateTransformationOperator extends Operator
Coordinate transformation operator in n-dimensional Euclidean space:
map(double[] destPoint, double[] srcPoint),
that transforms the original point to the new point.
Implementations of this interface are usually immutable and
always thread-safe: map method of this interface may be freely used
while simultaneous accessing the same instance from several threads.
All implementations of this interface from this package are immutable.
AlgART Laboratory 2007-2013
| Modifier and Type | Field and Description |
|---|
| Fields inherited from interface net.algart.math.functions.Operator |
|---|
IDENTITY |
| Modifier and Type | Method and Description |
|---|---|
Func |
apply(Func f)
In this interface, this method is equivalent to CoordinateTransformedFunc.getInstance(f, this). |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is also a coordinate transformation operator, performing the same coordinate transformation as this one. |
int |
hashCode()
Returns the hash code of this object. |
void |
map(double[] destPoint,
double[] srcPoint)
Transforms the coordinates srcPoint of the original point in n-dimensional space to the coordinates destPoint of the destination point. |
| Method Detail |
|---|
void map(double[] destPoint,
double[] srcPoint)
This method must not modify srcPoint array.
Warning: this method will probably not work correctly if destPoint and srcPoint is the same Java array!
destPoint - the coordinates of the destinated point y, filled by this method.srcPoint - the coordinates of the source point x.java.lang.NullPointerException - if one of the arguments is null.java.lang.IllegalArgumentException - if destPoint.length!=srcPoint.length
(may be not thrown by some implementations,
or may be thrown in other situations).Func apply(Func f)
CoordinateTransformedFunc.getInstance(f, this).
apply in interface Operatorf - the parent function, the arguments of which will be mapped by this operator.int hashCode()
hashCode in class java.lang.Objectboolean equals(java.lang.Object obj)
coordinate transformation operator, performing the same coordinate transformation as this one.
There is high probability, but no guarantee that this method returns true if the passed operator specifies a transformation, identical to this one. There is a guarantee that this method returns false if the passed operator specifies a transformation, different than this one.
equals in class java.lang.Objectobj - the object to be compared for equality with this operator.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||