EOS 2
1.1.0
Einfache Objektbasierte Sprache
EosBaseLib
src
de
lathanda
eos
base
layout
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
}
de.lathanda.eos.base.layout.BalancePoint
Definition:
BalancePoint.java:13
de.lathanda.eos.base.layout.BalancePoint.getPoint
Point getPoint()
Definition:
BalancePoint.java:30
de.lathanda.eos.base.layout.BalancePoint.BalancePoint
BalancePoint(double weight, double x, double y)
Definition:
BalancePoint.java:21
de.lathanda.eos.base.layout.BalancePoint.toString
String toString()
Definition:
BalancePoint.java:41
de.lathanda.eos.base.layout.BalancePoint.getX
double getX()
Definition:
BalancePoint.java:33
de.lathanda.eos.base.layout.BalancePoint.getY
double getY()
Definition:
BalancePoint.java:36
de.lathanda.eos.base.layout.BalancePoint.BalancePoint
BalancePoint(double weight, Point point)
Definition:
BalancePoint.java:17
de.lathanda.eos.base.layout.BalancePoint.getWeight
double getWeight()
Definition:
BalancePoint.java:26
de.lathanda.eos.base.math.Point
Ort.
Definition:
Point.java:12
de.lathanda.eos.base.math.Point.getX
double getX()
Definition:
Point.java:66
de.lathanda.eos.base.math.Point.getY
double getY()
Definition:
Point.java:75
Impressum