All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.plantuml.svek.image.YTransformer Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// 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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy