EOS 2  1.1.0
Einfache Objektbasierte Sprache
BalancePoint.java
gehe zur Dokumentation dieser Datei
1 package de.lathanda.eos.base.layout;
2 
3 import de.lathanda.eos.base.math.Point;
4 
13 public class BalancePoint {
14  private final double weight;
15  private final Point point;
16 
17  public BalancePoint(double weight, Point point) {
18  this.weight = weight;
19  this.point = point;
20  }
21  public BalancePoint(double weight, double x, double y) {
22  this.weight = weight;
23  this.point = new Point(x, y);
24  }
25 
26  public double getWeight() {
27  return weight;
28  }
29 
30  public Point getPoint() {
31  return point;
32  }
33  public double getX() {
34  return point.getX();
35  }
36  public double getY() {
37  return point.getY();
38  }
39 
40  @Override
41  public String toString() {
42  return "BalancePoint{" + "weight=" + weight + ", point=" + point + '}';
43  }
44 
45 }
BalancePoint(double weight, double x, double y)
BalancePoint(double weight, Point point)
Impressum