Package 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 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.
- Author:
- Daniel Alievsky
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIn this interface, this method is equivalent toCoordinateTransformedFunc.getInstance(f, this).abstract voidmap(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, waitMethods inherited from interface net.algart.math.functions.CoordinateTransformationOperator
equals, hashCode
-
Constructor Details
-
AbstractCoordinateTransformationOperator
public AbstractCoordinateTransformationOperator()
-
-
Method Details
-
map
public abstract void map(double[] destPoint, double[] srcPoint) Description copied from interface:CoordinateTransformationOperatorTransforms 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:
mapin interfaceCoordinateTransformationOperator- Parameters:
destPoint- the coordinates of the destinated point y, filled by this method.srcPoint- the coordinates of the source point x.
-
apply
Description copied from interface:CoordinateTransformationOperatorIn this interface, this method is equivalent toCoordinateTransformedFunc.getInstance(f, this).- Specified by:
applyin interfaceCoordinateTransformationOperator- Specified by:
applyin interfaceOperator- Parameters:
f- the parent function, the arguments of which will be mapped by this operator.- Returns:
- new transformed function.
-