OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    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.

    Macro Definition Documentation

    ◆ NCOLLECTION_VEC_COMPONENTS_3D

    #define NCOLLECTION_VEC_COMPONENTS_3D ( theX,
    theY,
    theZ )
    Value:
    constexpr NCollection_Vec3<Element_t> theX##theY##theZ() const noexcept \
    { \
    return NCollection_Vec3<Element_t>(theX(), theY(), theZ()); \
    } \
    constexpr NCollection_Vec3<Element_t> theX##theZ##theY() const noexcept \
    { \
    return NCollection_Vec3<Element_t>(theX(), theZ(), theY()); \
    } \
    constexpr NCollection_Vec3<Element_t> theY##theX##theZ() const noexcept \
    { \
    return NCollection_Vec3<Element_t>(theY(), theX(), theZ()); \
    } \
    constexpr NCollection_Vec3<Element_t> theY##theZ##theX() const noexcept \
    { \
    return NCollection_Vec3<Element_t>(theY(), theZ(), theX()); \
    } \
    constexpr NCollection_Vec3<Element_t> theZ##theY##theX() const noexcept \
    { \
    return NCollection_Vec3<Element_t>(theZ(), theY(), theX()); \
    } \
    constexpr NCollection_Vec3<Element_t> theZ##theX##theY() const noexcept \
    { \
    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:54

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