Open CASCADE Technology  7.2.0
Data Structures | Macros

NCollection_Vec2.hxx File Reference

#include <cmath>

Data Structures

class  NCollection_Vec2< Element_t >
 Defines the 2D-vector template. The main target for this class - to handle raw low-level arrays (from/to graphic driver etc.). More...
 

Macros

#define NCOLLECTION_VEC_COMPONENTS_2D(theX, theY)
 Auxiliary macros to define couple of similar access components as vector methods. More...
 

Macro Definition Documentation

◆ NCOLLECTION_VEC_COMPONENTS_2D

#define NCOLLECTION_VEC_COMPONENTS_2D (   theX,
  theY 
)
Value:
const NCollection_Vec2<Element_t> theX##theY() const { return NCollection_Vec2<Element_t>(theX(), theY()); } \
const NCollection_Vec2<Element_t> theY##theX() const { return NCollection_Vec2<Element_t>(theY(), theX()); }
Defines the 2D-vector template. The main target for this class - to handle raw low-level arrays (from...
Definition: NCollection_Vec2.hxx:29

Auxiliary macros to define couple of similar access components as vector methods.

Returns
2 components by their names in specified order