Class LinearTransformation.LinearTransformationBuilder

    • Method Detail

      • and

        public LinearTransformation and​(double x2,
                                        double y2)
        Finish building an instance which also maps x = x2 to y = y2. These values must not both be identical to the values given in the first mapping. If only the x values are identical, the transformation is vertical. If only the y values are identical, the transformation is horizontal (i.e. the slope is zero).
      • withSlope

        public LinearTransformation withSlope​(double slope)
        Finish building an instance with the given slope, i.e. the rate of change of y with 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.)