나는이 객체를 "this"가 Point의 배열이되게하려는 programm에 대해 작업하고 있지만 programm를 실행할 때이 오류가 발생하며 그 이유를 이해할 수 없습니다. 오류 -> DouglasPeucker. 내 programm에 :배열 점의 생성자
public class DouglasPeucker {
private double epsilon;
protected Point[] coinImage;
public DouglasPeucker(Point [] tab) {
this.coinImage = new Point[tab.length];
for(int i = 0; i < this.coinImage.length; i++) {
double abscisse = tab[i].getX();
double ordonnee = tab[i].getY();
System.out.println(abscisse + " " + ordonnee);
this.coinImage[i].setX(abscisse);
this.coinImage[i].setY(ordonnee);
}
}
오류가 무엇입니까 당신은 뭔가를해야합니까? – mre