Skip to content

Add math.diag #193

@olokobayusuf

Description

@olokobayusuf

It'll be great to be able to do the following:

float2 scale = float2(2f, 3f);
float2x2 transform = diag(scale);
// Yields:
// 2f 0f
// 0f 3f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions