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_Vec2.hxx File Reference
    #include <cmath>
    #include <Standard_Dump.hxx>

    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.

    Macro Definition Documentation

    ◆ NCOLLECTION_VEC_COMPONENTS_2D

    #define NCOLLECTION_VEC_COMPONENTS_2D ( theX,
    theY )
    Value:
    constexpr NCollection_Vec2<Element_t> theX##theY() const noexcept \
    { \
    return NCollection_Vec2<Element_t>(theX(), theY()); \
    } \
    constexpr NCollection_Vec2<Element_t> theY##theX() const noexcept \
    { \
    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:38

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

    Returns
    2 components by their names in specified order