/*$************************************************************************************************
**
** $Id: MathTransform1D.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/referencing/operation/MathTransform1D.java $
**
** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.referencing.operation;
// Annotations
import org.opengis.annotation.Extension;
/**
* Transforms one-dimensional coordinate points.
* {@link CoordinateOperation#getMathTransform} may returns instance of this
* interface when source and destination coordinate systems are both one dimensional.
* {@code MathTransform1D} extends {@link MathTransform} by adding a simple method
* transforming a value without the overhead of creating data array.
*
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 1.0
*/
@Extension
public interface MathTransform1D extends MathTransform {
/**
* Transforms the specified value.
*
* @param value The value to transform.
* @return the transformed value.
* @throws TransformException if the value can't be transformed.
*/
double transform(final double value) throws TransformException;
/**
* Gets the derivative of this function at a value. The derivative is the
* 1×1 matrix of the non-translating portion of the approximate affine
* map at the value.
*
* @param value The value where to evaluate the derivative.
* @return The derivative at the specified point.
* @throws TransformException if the derivative can't be evaluated at the
* specified point.
*/
double derivative(final double value) throws TransformException;
}
Ads help maintain this website.