net.java.html.leaflet

Class Transformation

• ```public final class Transformation
extends Object```
Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d` for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing the reverse.
• Constructor Summary

Constructors
Constructor and Description
```Transformation(double a, double b, double c, double d)```
Creates a transformation object with the given coefficients.
• Method Summary

All Methods
Modifier and Type Method and Description
`Point` `transform(Point point)`
Returns a transformed point.
`Point` ```transform(Point point, double scale)```
Returns a transformed point, multiplied by the given scale.
`Point` `untransform(Point point)`
Returns the reverse transformation of the given point, optionally divided by the given scale.
`Point` ```untransform(Point point, double scale)```
Returns the reverse transformation of the given point, optionally divided by the given scale.
• Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• Constructor Detail

• Transformation

```public Transformation(double a,
double b,
double c,
double d)```
Creates a transformation object with the given coefficients.
Parameters:
`a` - Coefficient a
`b` - Coefficient b
`c` - Coefficient c
`d` - Coefficient d
• Method Detail

• transform

`public Point transform(Point point)`
Returns a transformed point.
Parameters:
`point` - The Point to transform
Returns:
The transformed point
• transform

```public Point transform(Point point,
double scale)```
Returns a transformed point, multiplied by the given scale.
Parameters:
`point` - The Point to transform
`scale` - The applied scale factor
Returns:
The transformed point
• untransform

`public Point untransform(Point point)`
Returns the reverse transformation of the given point, optionally divided by the given scale.
Parameters:
`point` - The Point to reverse transform
Returns:
The reverse transformed point
• untransform

```public Point untransform(Point point,
double scale)```
Returns the reverse transformation of the given point, optionally divided by the given scale.
Parameters:
`point` - The Point to reverse transform
`scale` - The applied scale factor
Returns:
The reverse transformed point