18 lines
495 B
Java
18 lines
495 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.toString());
|
|
Gerade h = new Gerade(-0.5, 2);
|
|
System.out.println("Gerade h:" );
|
|
System.out.println(h.toString());
|
|
Punkt S = g.schneide(h);
|
|
System.out.println("Schnittpunkt: ");
|
|
System.out.println(S.toString());
|
|
}
|
|
}
|