net.algart.math.functions
Class AbstractCoordinateTransformationOperator
java.lang.Object
net.algart.math.functions.AbstractCoordinateTransformationOperator
- All Implemented Interfaces:
- CoordinateTransformationOperator, Operator
- Direct Known Subclasses:
- ProjectiveOperator
public abstract class AbstractCoordinateTransformationOperator
extends java.lang.Object
implements CoordinateTransformationOperator
A skeletal implementation of the CoordinateTransformationOperator interface to minimize
the effort required to implement this interface.
Namely, this class contain complete implementation of CoordinateTransformationOperator.apply(net.algart.math.functions.Func) method.
AlgART Laboratory 2007-2013
- Since:
- JDK 1.5
- Version:
- 1.2
- Author:
- Daniel Alievsky
Method Summary
Func |
apply(Func f)
In this interface, this method is equivalent to
CoordinateTransformedFunc.getInstance(f, this). |
abstract 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCoordinateTransformationOperator
public AbstractCoordinateTransformationOperator()
map
public abstract void map(double[] destPoint,
double[] srcPoint)
- Description copied from interface:
CoordinateTransformationOperator
- Transforms the coordinates srcPoint of the original point in n-dimensional space
to the coordinates destPoint of the destination point.
Usually destPoint.length must be equal to srcPoint.length (the number of dimensions),
but this requirement is not strict.
This method must not modify srcPoint array.
Warning: this method will probably not work correctly if destPoint and srcPoint
is the same Java array!
- Specified by:
map in interface CoordinateTransformationOperator
- Parameters:
destPoint - the coordinates of the destinated point y, filled by this method.srcPoint - the coordinates of the source point x.
apply
public Func apply(Func f)
- Description copied from interface:
CoordinateTransformationOperator
- In this interface, this method is equivalent to
CoordinateTransformedFunc.getInstance(f, this).
- Specified by:
apply in interface CoordinateTransformationOperator
- Specified by:
apply in interface Operator
- Parameters:
f - the parent function, the arguments of which will be mapped by this operator.
- Returns:
- new transformed function.