Скачиваний:
62
Добавлен:
09.05.2014
Размер:
544 б
Скачать
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;
}
}
Соседние файлы в папке lab1