![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.klimt.geom.MinFinder 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.klimt.geom;
import java.util.Objects;
public class MinFinder {
private double minX = Double.MAX_VALUE;
private double minY = Double.MAX_VALUE;
public void manage(double x, double y) {
if (x < minX) {
minX = x;
}
if (y < minY) {
minY = y;
}
}
public void manage(XPoint2D p) {
Objects.requireNonNull(p);
manage(p.getX(), p.getY());
}
public void manage(MinFinder other) {
manage(other.minX, other.minY);
}
@Override
public String toString() {
return "minX=" + minX + " minY=" + minY;
}
public double getMinX() {
return minX;
}
public double getMinY() {
return minY;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy