Acoustic FDTD Solver
|
Specify a rectangular region in the Y-Z plane. More...
#include <Rectangle.hpp>
Public Member Functions | |
Rectangle () | |
Rectangle (const double y, const double z, const double b, const double c) | |
Takes two points to specify the rectangle. | |
Rectangle (const CartPosition &lower, const CartPosition &upper) | |
Rectangle (const Rectangle &the_rectangle) | |
CartPosition | getUpper () const |
Get the [max(y) max(z)] corner of the rectangle. | |
CartPosition | getLower () const |
Get the [min(y) min(z)] corner of the rectangle. | |
double | getXLength () const |
double | getYLength () const |
double | getZLength () const |
double | getLargestLength () const |
unsigned | getType () const |
std::vector< unsigned > | getDimension (const Grid &grid) const |
Rectangle * | clone () const |
std::vector< std::vector < unsigned > > | getCoordinateIndex (const Grid &grid) const |
~Rectangle () | |
Public Member Functions inherited from Shape | |
virtual | ~Shape () |
The destructor cannot be pure virtual. |
Public Attributes | |
CartPosition | lower |
CartPosition | upper |
Specify a rectangular region in the Y-Z plane.
Rectangle::Rectangle | ( | ) |
Rectangle::Rectangle | ( | const double | y, |
const double | z, | ||
const double | b, | ||
const double | c | ||
) |
Takes two points to specify the rectangle.
Identify the lower and upper points given the coordinate of the input points.
Rectangle::Rectangle | ( | const CartPosition & | lower, |
const CartPosition & | upper | ||
) |
Rectangle::Rectangle | ( | const Rectangle & | the_rectangle | ) |
Rectangle::~Rectangle | ( | ) |
|
virtual |
Implements Shape.
std::vector<unsigned> Rectangle::getDimension | ( | const Grid & | grid | ) | const |
|
virtual |
Implements Shape.
|
virtual |
Get the [min(y) min(z)] corner of the rectangle.
Implements Shape.
|
virtual |
Implements Shape.
|
virtual |
Get the [max(y) max(z)] corner of the rectangle.
Implements Shape.
|
virtual |
Implements Shape.
|
virtual |
Implements Shape.
|
virtual |
Implements Shape.
CartPosition Rectangle::lower |
CartPosition Rectangle::upper |