CGAL 5.1 - 3D Periodic Triangulations
Periodic_3Offset_3 Class Reference

#include <Concepts/Periodic_3Offset_3.h>

Definition

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

Has Models:
CGAL::Periodic_3_offset_3
See also
Periodic_3TriangulationTraits_3
Periodic_3DelaunayTriangulationTraits_3
Periodic_3RegularTriangulationTraits_3

Creation

 Periodic_3Offset_3 ()
 Default constructor. More...
 
 Periodic_3Offset_3 (int x, int y, int z)
 Constructs the offset (x,y,z). More...
 

Operations

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

Access Functions

int operator[] (int i)
 Return the \( i\)-th entry of o. More...
 
int x () const
 Return the \( x\)-entry of o. More...
 
int y () const
 Return the \( y\)-entry of o. More...
 
int z ()
 Return the \( z\)-entry of o. More...
 
bool is_null () const
 Returns true if o is equal to (0,0,0). More...
 
istream & operator>> (istream &is, Periodic_3_offset_3 &off)
 Inputs an offset from is. More...
 
ostream & operator<< (ostream &os, Periodic_3_offset_3 &off) const
 Outputs an offset from os. More...
 

Constructor & Destructor Documentation

◆ Periodic_3Offset_3() [1/2]

Periodic_3Offset_3::Periodic_3Offset_3 ( )

Default constructor.

◆ Periodic_3Offset_3() [2/2]

Periodic_3Offset_3::Periodic_3Offset_3 ( int  x,
int  y,
int  z 
)

Constructs the offset (x,y,z).

Member Function Documentation

◆ is_null()

bool Periodic_3Offset_3::is_null ( ) const

Returns true if o is equal to (0,0,0).

◆ operator!=()

bool Periodic_3Offset_3::operator!= ( const Periodic_3Offset_3 other) const

Return true if other and o do not represent the same vector.

◆ operator+()

Periodic_3Offset_3 Periodic_3Offset_3::operator+ ( const Periodic_3Offset_3 other) const

Return the vector sum of o and other.

◆ operator+=()

void Periodic_3Offset_3::operator+= ( const Periodic_3Offset_3 other) const

Add other to o using vector addition.

◆ operator-() [1/2]

Periodic_3Offset_3 Periodic_3Offset_3::operator- ( ) const

Return the negative vector of o.

◆ operator-() [2/2]

Periodic_3Offset_3 Periodic_3Offset_3::operator- ( const Periodic_3Offset_3 other) const

Return the vector difference of o and other.

◆ operator-=()

void Periodic_3Offset_3::operator-= ( const Periodic_3Offset_3 other) const

Subtract other from o using vector subtraction.

◆ operator<()

bool Periodic_3Offset_3::operator< ( const Periodic_3Offset_3 other) const

Compare o and other lexicographically.

◆ operator<<()

ostream& Periodic_3Offset_3::operator<< ( ostream &  os,
Periodic_3_offset_3 &  off 
) const

Outputs an offset from os.

◆ operator==()

bool Periodic_3Offset_3::operator== ( const Periodic_3Offset_3 other) const

Return true if other and o represent the same vector.

◆ operator>>()

istream& Periodic_3Offset_3::operator>> ( istream &  is,
Periodic_3_offset_3 &  off 
)

Inputs an offset from is.

◆ operator[]()

int Periodic_3Offset_3::operator[] ( int  i)

Return the \( i\)-th entry of o.

◆ x()

int Periodic_3Offset_3::x ( ) const

Return the \( x\)-entry of o.

◆ y()

int Periodic_3Offset_3::y ( ) const

Return the \( y\)-entry of o.

◆ z()

int Periodic_3Offset_3::z ( )

Return the \( z\)-entry of o.