public static final class LinearTransformation.LinearTransformationBuilder extends Object
LinearTransformation.mapping(double, double). You almost certainly don't want to keep instances around, but instead use method chaining. This represents a single point mapping, i.e. a mapping between one
|Modifier and Type||Method and Description|
Finish building an instance which also maps
Finish building an instance with the given slope, i.e.
public LinearTransformation and(double x2, double y2)
x = x2to
y = y2. These values must not both be identical to the values given in the first mapping. If only the
xvalues are identical, the transformation is vertical. If only the
yvalues are identical, the transformation is horizontal (i.e. the slope is zero).
public LinearTransformation withSlope(double slope)
ywith respect to
x. The slope must not be
NaN. It may be infinite, in which case the transformation is vertical. (If it is zero, the transformation is horizontal.)
Copyright © 2010–2020. All rights reserved.