Skip to content

uiDrawMatrixScale center #331

@mischnic

Description

@mischnic

Are the xCenter and yCenter coordinates relative to the element (as with rotation, right?) or the area?

libui/ui.h

Line 472 in 9cf56e1

_UI_EXTERN void uiDrawMatrixScale(uiDrawMatrix *m, double xCenter, double yCenter, double x, double y);

(I'm guessing it's relative to the area).
I'm trying to scale the rectangle with it's center as the scale center.
Here I drew the rectangle at (50,50) and set the scale center to (50,50). Why does the rectangle move while changing the scaling factor?

uiscale

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions