31 namespace algorithms {
35 {
double x,
y; fin >> x >>
y;
_z = std::complex<double>(
x,
y); }
38 { fout <<
getX() <<
" " <<
getY() <<
" "; }
154 if (!
_isDefined)
return std::vector<Bounds>(nx*ny);
155 std::vector<Bounds> temp;
157 std::vector<double>
x(nx+1);
158 std::vector<double>
y(ny+1);
163 for(
int i=1;i<nx;++i) x[i] = x[0]+i*xstep;
164 for(
int j=1;j<ny;++j) y[j] = y[0]+j*ystep;
165 for(
int i=0;i<nx;++i)
for(
int j=0;j<ny;++j)
166 temp.push_back(
Bounds(x[i],x[i+1],y[j],y[j+1]));
std::vector< Bounds > divide(int nx, int ny) const
bool operator==(const Bounds &rhs) const
void operator+=(const Position &pos)
std::vector< Bounds > quarter() const
void read(std::istream &fin)
bool intersects(const Bounds &b2) const
Extent< int, N > ceil(Extent< double, N > const &input)
void write(std::ostream &fout) const
void write(std::ostream &fout) const
Position getCenter() const
bool includes(const Position &pos) const
Bounds operator&(const Bounds &rhs) const
void addXBorder(double d)
Extent< int, N > floor(Extent< double, N > const &input)
std::complex< double > _z
void read(std::istream &fin)
void addYBorder(double d)