1 package de.lathanda.eos.geo;
3 import de.lathanda.eos.base.layout.BalancePoint;
5 import de.lathanda.eos.base.Picture;
6 import de.lathanda.eos.base.layout.BoundingBox;
7 import de.lathanda.eos.base.math.Point;
8 import de.lathanda.eos.base.math.Vector;
9 import de.lathanda.eos.base.layout.Transform;
10 import static java.lang.Math.*;
17 private double length;
21 this.length = sqrt(800);
28 p.
drawLine(-length/2, 0, length/2, 0);
36 TrueLine t = this.
new TrueLine();
43 TrueLine t = this.
new TrueLine();
48 TrueLine t = this.
new TrueLine();
55 TrueLine t = this.
new TrueLine();
59 TrueLine t = this.
new TrueLine();
66 TrueLine t = this.
new TrueLine();
71 TrueLine t = this.
new TrueLine();
78 TrueLine t = this.
new TrueLine();
83 TrueLine t = this.
new TrueLine();
84 t.A =
new Point(x, y);
90 TrueLine t = this.
new TrueLine();
91 t.B =
new Point(x, y);
96 public void setPoints(
double x1,
double y1,
double x2,
double y2) {
97 TrueLine t = this.
new TrueLine();
98 t.A =
new Point(x1, y1);
99 t.B =
new Point(x2, y2);
108 private class TrueLine {
117 Vector v =
new Vector(A, B);
118 length = v.getLength();
void setDrawWidth(double width)
abstract void drawLine(double x1, double y1, double x2, double y2)
void setPoints(double x1, double y1, double x2, double y2)
BoundingBox calculateBoundingBox(Transform base, Transform own)
void setPoint1(double x, double y)
BalancePoint getBalancePoint()
void drawObject(Picture p)
void scaleInternal(double factor)
void setPoint2(double x, double y)