net.sourceforge.plantuml.svek.image.YTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.svek.image;
import net.sourceforge.plantuml.klimt.geom.XPoint2D;
public class YTransformer {
private final double alpha;
public YTransformer(double alpha) {
this.alpha = alpha;
}
public XPoint2D getPoint2D(XPoint2D pt) {
return new XPoint2D(pt.getX(), pt.getY() * alpha);
}
public XPoint2D getReversePoint2D(XPoint2D pt) {
return new XPoint2D(pt.getX(), pt.getY() / alpha);
}
public double getAlpha() {
return alpha;
}
}