Skip to content

Better Scale API design #122

@AzurIce

Description

@AzurIce

Currently, we only have DVec3 transformation for Scale.

But for some items, we may expect that they can accept DVec2 or f64.

For example, VItems are actually lied in a 2d plane, a DVec2 transform is more convenient, however the points are 3d, so they should also accept DVec3, and in addition, we may also expect a f64 to make a splat transform. But some items like Circle may only accept f64 transform, because if the scaling is not uniform, it may break the circle shape.

So its kind of like: DVec2 + basis -> DVec3 (by projecting) -> f64 (simply use a splat).

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