Class AbstractMathTransform2D

All Implemented Interfaces:
Parameterized, Lenient­Comparable, Math­Transform, Math­Transform2D
Direct Known Subclasses:
Normalized­Projection, Zoned­Grid­System

public abstract class AbstractMathTransform2D extends AbstractMathTransform implements MathTransform2D
Base class for math transforms that are known to be two-dimensional in all cases. Two-dimensional math transforms are not required to extend this class, however doing so may simplify their implementation.

The simplest way to implement this abstract class is to provide an implementation for the following methods only:

However more performance may be gained by overriding the other transform methods as well.

Immutability and thread safety

All Apache SIS implementations of Math­Transform2D are immutable and thread-safe. It is highly recommended that third-party implementations be immutable and thread-safe too. This means that unless otherwise noted in the javadoc, Math­Transform2D instances can be shared by many objects and passed between threads without synchronization.

Serialization

Math­Transform2D may or may not be serializable, at implementation choices. Most Apache SIS implementations are serializable, but the serialized objects are not guaranteed to be compatible with future SIS versions. Serialization should be used only for short term storage or RMI between applications running the same SIS version.
Since:
0.5

Defined in the sis-referencing module