Concept

Periodic_3Offset_3

Definition

The concept Periodic_3Offset_3 describes a three-dimensional integer vector with some specialized access functions and operations.

Creation

Periodic_3Offset_3 o;
Default constructor.

Periodic_3Offset_3 o ( int x, int y, int z);
Constructs the offset (x,y,z).

Operations

Periodic_3Offset_3 o + o' const Return the vector sum of o and o'.
Periodic_3Offset_3 o - o' const Return the vector difference of o and o'.
Periodic_3Offset_3 - o const Return the negative vector of o.
void o += o' const Add o' to o using vector addition.
void o -= o' const Subtract o' from o using vector subtraction.
bool o == o' const Return true if o' and o represent the same vector.
bool o != o' const Return true if o' and o do not represent the same vector.
bool o < o' const Compare o and o' lexicographically.

Access Functions

int o [ int i ] Return the i-th entry of o.
int o.x () const Return the x-entry of o.
int o.y () const Return the y-entry of o.
int o.z () Return the z-entry of o.
bool o.is_null () const Returns true if o is equal to (0,0,0).

I/O

istream& istream & is >> Periodic_3_offset_3 & off
Inputs an offset from is.
ostream& ostream & os << Periodic_3_offset_3 & off const
Outputs an offset from os.

Has Models

CGAL::Periodic_3_offset_3

See Also

Periodic_3DelaunayTriangulationTraits_3