public class IlvMapAffineTransform extends Object implements IlvMathTransform, IlvPersistentObject
| Constructor and Description |
|---|
IlvMapAffineTransform()
Constructs a new identity affine transformation.
|
IlvMapAffineTransform(double xAxisTranslation,
double yAxisTranslation,
double zAxisTranslation)
Constructs a new affine transformation with the specified translations
on the axis.
|
IlvMapAffineTransform(IlvInputStream stream)
Reads an
IlvMapAffineTransform from the specified
input stream. |
IlvMapAffineTransform(int sourceDimension,
int targetDimension,
double[] matrix)
Constructs a new affine transformation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
concatenate(IlvMapAffineTransform t)
Concatenates the specified transformation with this one.
|
boolean |
equals(Object obj) |
IlvMathTransform |
getInverse()
Returns the inverse transformation.
|
int |
getSourceDimension()
Returns the dimension of the source coordinates.
|
int |
getTargetDimension()
Returns the dimension of the target coordinates.
|
double |
getValue(int column,
int row)
Returns the value in the affine transformation matrix at the specified
column and row.
|
boolean |
isIdentity()
Returns
true if this transformation is an identity. |
IlvCoordinate[] |
transform(IlvCoordinate[] sourceCP,
IlvCoordinate[] result)
Transforms the specified array of coordinate points, and puts the
resulting coordinates in
result. |
IlvCoordinate |
transform(IlvCoordinate sourceCP,
IlvCoordinate targetCP)
Transforms the specified point.
|
void |
write(IlvOutputStream stream)
Writes this transformation to the specified output file.
|
public IlvMapAffineTransform()
public IlvMapAffineTransform(double xAxisTranslation,
double yAxisTranslation,
double zAxisTranslation)
xAxisTranslation - The translation on the X axis.yAxisTranslation - The translation on the Y axis.zAxisTranslation - The translation on the Z axis.public IlvMapAffineTransform(int sourceDimension,
int targetDimension,
double[] matrix)
public IlvMapAffineTransform(IlvInputStream stream) throws IlvReadFileException
IlvMapAffineTransform from the specified
input stream.stream - The IlvInputStream.IlvReadFileException - If a transformation cannot be read
from the input stream.public void write(IlvOutputStream stream) throws IOException
write in interface IlvPersistentObjectstream - The IlvOutputStream.IOException - If an error occurs.public IlvMathTransform getInverse()
getInverse in interface IlvMathTransformpublic double getValue(int column,
int row)
public int getSourceDimension()
getSourceDimension in interface IlvMathTransformpublic int getTargetDimension()
getTargetDimension in interface IlvMathTransformpublic boolean isIdentity()
true if this transformation is an identity.isIdentity in interface IlvMathTransformtrue if this transformation is an identity.public void concatenate(IlvMapAffineTransform t)
t - The IlvMapAffineTransform to append.public IlvCoordinate transform(IlvCoordinate sourceCP, IlvCoordinate targetCP) throws IlvCoordinateTransformationException
transform in interface IlvMathTransformsourceCP - The point to transform.targetCP - The result point. If targetCP is
null, a new IlvCoordinate is allocated.IlvCoordinateTransformationExceptionpublic IlvCoordinate[] transform(IlvCoordinate[] sourceCP, IlvCoordinate[] result) throws IlvCoordinateTransformationException
result. If result is
null, a new array of coordinate is allocated.transform in interface IlvMathTransformsourceCP - The array of points to transform.result - The array of results. If targetCP is
null, a new array of IlvCoordinate is allocated.IlvCoordinateTransformationExceptionpublic boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.