Добавил:
Eatmore
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:отчеты по лабораторным работам / лабораторная работа №1, 8 сем. / lab1 / Quadrant
.java package lab1;
public class Quadrant extends CoordinateQuarter{
private double radius = 0;
public Quadrant(byte quarter, double radius) {
super(quarter);
this.radius = radius;
}
public void SetRadius(double value) {
this.radius = value;
}
protected Boolean IsBelongs(Coordinate point) {
if (Math.pow(this.radius, 2) >= (Math.pow(point.GetX(), 2) + Math.pow(point.GetY(), 2)))
return Boolean.TRUE;
else
return Boolean.FALSE;
}
}
public class Quadrant extends CoordinateQuarter{
private double radius = 0;
public Quadrant(byte quarter, double radius) {
super(quarter);
this.radius = radius;
}
public void SetRadius(double value) {
this.radius = value;
}
protected Boolean IsBelongs(Coordinate point) {
if (Math.pow(this.radius, 2) >= (Math.pow(point.GetX(), 2) + Math.pow(point.GetY(), 2)))
return Boolean.TRUE;
else
return Boolean.FALSE;
}
}
Соседние файлы в папке lab1