Open CASCADE Technology  7.5.0
Data Structures | Macros
NCollection_Vec3.hxx File Reference
#include <cstring>
#include <cmath>
#include <NCollection_Vec2.hxx>

Data Structures

class  NCollection_Vec3< Element_t >
 Generic 3-components vector. To be used as RGB color pixel or XYZ 3D-point. The main target for this class - to handle raw low-level arrays (from/to graphic driver etc.). More...
 

Macros

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

Macro Definition Documentation

◆ NCOLLECTION_VEC_COMPONENTS_3D

#define NCOLLECTION_VEC_COMPONENTS_3D (   theX,
  theY,
  theZ 
)
Value:
const NCollection_Vec3<Element_t> theX##theY##theZ() const { return NCollection_Vec3<Element_t>(theX(), theY(), theZ()); } \
const NCollection_Vec3<Element_t> theX##theZ##theY() const { return NCollection_Vec3<Element_t>(theX(), theZ(), theY()); } \
const NCollection_Vec3<Element_t> theY##theX##theZ() const { return NCollection_Vec3<Element_t>(theY(), theX(), theZ()); } \
const NCollection_Vec3<Element_t> theY##theZ##theX() const { return NCollection_Vec3<Element_t>(theY(), theZ(), theX()); } \
const NCollection_Vec3<Element_t> theZ##theY##theX() const { return NCollection_Vec3<Element_t>(theZ(), theY(), theX()); } \
const NCollection_Vec3<Element_t> theZ##theX##theY() const { return NCollection_Vec3<Element_t>(theZ(), theX(), theY()); }
Generic 3-components vector. To be used as RGB color pixel or XYZ 3D-point. The main target for this ...
Definition: NCollection_Vec3.hxx:35

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