Skip to content

Instantly share code, notes, and snippets.

@yoya
Created March 7, 2018 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoya/70c4af517ce4bcc4cc6d1ec92af12119 to your computer and use it in GitHub Desktop.
Save yoya/70c4af517ce4bcc4cc6d1ec92af12119 to your computer and use it in GitHub Desktop.
approximation of circle
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yoya
Copy link
Author

yoya commented Mar 7, 2018

2次ベジエ(Q) でなく3次ベジエ(C)を使うと見た目でわからないほど正確な円弧を表現できる。黄色い線がそれ。
係数はこちらの 0.55228 を拝借した > https://cat-in-136.github.io/2014/03/bezier-1-kappa.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment