Skip to content

More floating point operations for matrix types #121811

@StreetwareGames

Description

@StreetwareGames

Not sure if this is on the roadmap for matrix types already since they're still experimental and in development, but some operations like negation and taking the absolute value of every component in a matrix can be very useful. There's probably more but these are directly from my project.

abs() on matrix: if I have a box and it has a 3x3 matrix associated with it, taking abs() of the matrix can be used to calculate the absolute scale.

Negation on matrix: we can already add and subtract matrices together. Being able to negate a matrix in its entirety seems like a missing feature to me. (i.e. mat3 m = ...; m = -m;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions