public class SingleDimensionTransformation extends Object implements MathTransformation
MathTransformation
implementation for single-dimensional operationsModifier and Type | Class and Description |
---|---|
static class |
SingleDimensionTransformation.ConstantTransform |
Modifier and Type | Field and Description |
---|---|
static SingleDimensionTransformation |
IDENTITY |
protected double |
offset |
protected double |
scale |
Modifier | Constructor and Description |
---|---|
protected |
SingleDimensionTransformation(double scale,
double offset) |
Modifier and Type | Method and Description |
---|---|
static SingleDimensionTransformation |
create(double scale,
double offset) |
double |
derivative(double value) |
double |
getOffset() |
double |
getScale() |
int |
getSourceDimensions() |
int |
getTargetDimensions() |
MathTransformation |
inverseTransform() |
boolean |
isIdentity() |
boolean |
isIdentity(double tolerance) |
void |
setOffset(double offset) |
void |
setScale(double scale) |
double |
transform(double value) |
Position |
transform(Position ptSrc,
Position ptDst) |
public static final SingleDimensionTransformation IDENTITY
protected double scale
protected double offset
protected SingleDimensionTransformation(double scale, double offset)
public double getScale()
public void setScale(double scale)
public double getOffset()
public void setOffset(double offset)
public double transform(double value)
transform
in interface MathTransformation
public double derivative(double value)
derivative
in interface MathTransformation
public int getSourceDimensions()
getSourceDimensions
in interface MathTransformation
public int getTargetDimensions()
getTargetDimensions
in interface MathTransformation
public MathTransformation inverseTransform()
inverseTransform
in interface MathTransformation
public boolean isIdentity()
isIdentity
in interface MathTransformation
public boolean isIdentity(double tolerance)
public static SingleDimensionTransformation create(double scale, double offset)
public Position transform(Position ptSrc, Position ptDst)
transform
in interface MathTransformation
Copyright © 2006–2015 GeoSolutions. All rights reserved.