19 lines
418 B
Java
19 lines
418 B
Java
|
|
public class Test
|
|
{
|
|
public static void test() {
|
|
Punkt P = new Punkt(1, -1);
|
|
Punkt Q = new Punkt(3, 3);
|
|
|
|
Gerade g = new Gerade (P, Q);
|
|
System.out.println("Gerade g:");
|
|
System.out.println(g);
|
|
|
|
Gerade h = new Gerade(-0.5, 2);
|
|
|
|
Punkt S = g.schneide(h);
|
|
System.out.println("Schnittpunkt:");
|
|
System.out.println(S);
|
|
}
|
|
}
|