org.jplot2d.transform
Class LinearTransform
- java.lang.Object
-
- org.jplot2d.transform.LinearTransform
-
- All Implemented Interfaces:
- Transform1D
public class LinearTransform extends java.lang.Object implements Transform1D
Performs a linear transformation. The equation isdest value = src value * k + a
-
-
Constructor Summary
Constructors Constructor and Description LinearTransform(double offset, double scale, double d1, double d2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleconvert(double u)Transform from src to dest coordinates.
-
-
-
Constructor Detail
-
LinearTransform
public LinearTransform(double offset, double scale, double d1, double d2)- Parameters:
offset- the offset in LinearNormalTransformscale- the scale in LinearNormalTransformd1- the start value in destinationd2- the end value in destination
-
-
Method Detail
-
convert
public double convert(double u)
Transform from src to dest coordinates.- Specified by:
convertin interfaceTransform1D- Parameters:
u- src value- Returns:
- dest value
-
-
DMelt 3.0 © DataMelt by jWork.ORG