-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestPoint.java
More file actions
33 lines (23 loc) · 744 Bytes
/
TestPoint.java
File metadata and controls
33 lines (23 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.example;
import main.java.com.example.Point;
public class TestPoint {
public static void main(String[] args) {
Point point1 = new Point("some_point",1,1);
System.out.println(point1);
point1.Affiche();
point1.TranslHoriz(4);
point1.Affiche();
point1.TranslVert(3);
point1.Affiche();
point1.Translation(3,6);
point1.Affiche();
point1.Translation(2);
point1.Affiche();
Point point2 = new Point("some_point2",10,12);
if(point1.Coincide(point2)){
System.out.println("Coincide");
}else{
System.out.println("non Coincide");
}
}
}