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
  • Constructor Details

    • AbstractCoordinateTransformationOperator

      public AbstractCoordinateTransformationOperator()
  • Method Details

    • 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.