Interface CoordinateTransformationOperator
- All Superinterfaces:
Operator
- All Known Implementing Classes:
AbstractCoordinateTransformationOperator
,LinearOperator
,ProjectiveOperator
Coordinate transformation operator in n-dimensional Euclidean space:
map(double[] destPoint, double[] srcPoint)
,
that transforms the original point to the new point.
Implementations of this interface are usually immutable and
always thread-safe: map
method of this interface may be freely used
while simultaneous accessing the same instance from several threads.
All implementations of this interface from this package are immutable.
- Author:
- Daniel Alievsky
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionIn this interface, this method is equivalent toCoordinateTransformedFunc.getInstance(f, this)
.boolean
Indicates whether some other object is also acoordinate transformation operator
, performing the same coordinate transformation as this one.int
hashCode()
Returns the hash code of this object.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.
-
Method Details
-
map
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. 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!
- Parameters:
destPoint
- the coordinates of the destinated point y, filled by this method.srcPoint
- the coordinates of the source point x.- Throws:
NullPointerException
- if one of the arguments is null.IllegalArgumentException
- if destPoint.length!=srcPoint.length (may be not thrown by some implementations, or may be thrown in other situations).
-
apply
In this interface, this method is equivalent toCoordinateTransformedFunc.getInstance(f, this)
. -
hashCode
int hashCode()Returns the hash code of this object. The result depends on all parameters, specifying coordinate transformation, performed by this operator. -
equals
Indicates whether some other object is also acoordinate transformation operator
, performing the same coordinate transformation as this one.There is high probability, but no guarantee that this method returns true if the passed operator specifies a transformation, identical to this one. There is a guarantee that this method returns false if the passed operator specifies a transformation, different than this one.
-