Skip to content

[enhancement] removing qglviewer::Vec in favour of QVector3D #6

@taiya

Description

@taiya

QGLViewer defines yet-another-vector-type. Couldn't you just use the QVector3D that now ships with Qt5? Especially the OpenGL4 API for Qt accepts natively QVector3D, etc...
Because of this incongruence my code is scattered with usages of this function:

#include <QVector3D>
namespace qt{
    inline QVector3D tr(const qglviewer::Vec& v){ 
        return QVector3D(v.x, v.y, v.z); 
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions