The concept Periodic_2Offset_2
describes a two-/dimensional integer vector with some specialized access functions and operations.
- Has models
CGAL::Periodic_2_offset_2
- See also
Periodic_2TriangulationTraits_2
-
Periodic_2DelaunayTriangulationTraits_2
|
(Note that these are not member functions.)
|
istream & | operator>> (istream &is, Periodic_2Offset_2 &off) |
| Inputs an offset from is .
|
|
ostream & | operator<< (ostream &os, Periodic_2Offset_2 &off) const |
| Outputs an offset from os .
|
|
|
| Periodic_2Offset_2 () |
| Default constructor.
|
|
| Periodic_2Offset_2 (int x, int y) |
| Constructs the offset (x,y).
|
|
|
int | operator[] (int i) |
| Return the \( i\)-th entry of this .
|
|
int | x () const |
| Return the \( x\)-entry of this .
|
|
int | y () const |
| Return the \( y\)-entry of this .
|
|
bool | is_null () const |
| Returns true if this is equal to (0,0).
|
|
bool | is_zero () const |
| Returns true if this is equal to (0,0).
|
|
◆ operator[]()
int Periodic_2Offset_2::operator[] |
( |
int |
i | ) |
|
Return the \( i\)-th entry of this
.
- Precondition
- \( i\in\{0,1\}\)