Skip to content

Separate Quaternion from Vector4? #390

@penggrin12

Description

@penggrin12

At the moment raylib::Vector4::Multiply (and other methods) use Quaternion math, while the data structure of a Quaternion is identical to a Vector4 (an alias in raylib's headers actually), the logic is very different. QuaternionMultiply is very different from Vector4Multiply. Decoupling them (and making raylib::Vector4::Multiply use Vector4Multiply) will however suddenly break existing code relying on raylib::Vector4::Multiply (and others)

Another solution would be to add additional methods for actual Vector4 math... but thats even worse in my opinion.

Will send a PR for #367 after this is resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions