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

Access Functions

int o [ int i ] Return the i-th entry of o.
int o.x () Return the x-entry of o.
int o.y () Return the y-entry of o.
int o.z () Return the z-entry of o.
bool o.is_null () 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
Outputs an offset from os.

Has Models

CGAL::Periodic_3_offset_3

See Also

Periodic_3DelaunayTriangulationTraits_3