Skip to content

Query about the Derivation of RATIO and Constants in radiusFromC Function #1

@swami-laxman

Description

@swami-laxman

Hi @scotato First of all thankyou for making this very useful extension.
I was trying to replicate same algo in swifui and I have some questions in mind.

Could you please provide some insight into how the RATIO was calculated and the reasoning behind the specific values chosen for the switch statement in the radiusFromC function in below code?
https://github.com/scotato/figma-squircle/blob/main/src/squircle.ts

Any mathematical references or design principles that influenced these choices would be greatly appreciated.

Thank you for your time and for sharing your work with the community. I look forward to understanding more about the intricacies of your squircle path calculations.

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