Skip to content

vector and matrices with generic coordinate types for exact geometric computation, references and move semantics #1383

@BrunoLevy

Description

@BrunoLevy

Hello,

I wish to replace my (crappy) in-house vec2,vec3 in geogram with glm. In geogram, I have several types for manipulating points and vectors. Some of them use arbitrary-precision numbers, for exact geometric computation. These arbitrary precision numbers do dynamic allocation (!). Using glm generic types in glm/detail/vec_n.hpp would imply a drop in performance because glm supposes that coordinate types are simple (float, double ...) and they are systematically passed by copy in all constructors.

How hard would it be to have references and move semantics everywhere in glm ? (I guess quite hard, but I found it worth it asking)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions