LoginSignup
2
0

More than 3 years have passed since last update.

P5.js 日本語リファレンス(DEGREESなど)

Last updated at Posted at 2020-08-01

このページでは「P5.js 日本語リファレンス」 の 関数を説明します。

※このページでは DEGREES、RADIANS、HALF_PI、PI、QUARTER_PI、TAU、TWO_PI の説明を記載しています。

DEGREES

説明文

angleMode() で使用する定数で、DEGREEDS を指定すると角度は 例えば円は0°〜360°で扱います。

構文

angleMode(DEGREES)

RADIANS

説明文

angleMode() で使用する定数で、RADIANS を指定すると角度は 例えば円は 0.0 〜 2π (6.28318531)で扱います。

構文

angleMode(RADIANS)

HALF_PI

説明文

HALF_PIは 1.57079632679489661923の値(πの半分)を持つ数学定数です。これは円の円周と直径の比率の半分です。三角関数sin() およびcos() と組み合わせると便利です。

構文

sin(HALF_PI)

cos(HALF_PI)

PI

説明文

PIは 3.14159265358979323846の値(π)を持つ数学定数です。 これは円の円周と直径の比です。 三角関数sin() およびcos() と組み合わせると便利です。

構文

sin(PI)

cos(PI)

QUARTER_PI

説明文

QUARTER_PIは 0.7853982の値を持つ数学定数です。これは,円の円周と直径の比率の4分の1です。三角関数sin() およびcos() と組み合わせると便利です。

構文

sin(QUARTER_PI)

cos(QUARTER_PI)

TAU

説明文

TAUは 6.28318530717958647693の値(2π)を持つ数学定数TWO_PIのエイリアスです。 これは, 円の円周と直径の比の2倍です。 三角関数sin() およびcos() と組み合わせると便利です。

構文

sin(TAU)

cos(TAU)

TWO_PI

説明文

TWO_PIは 6.28318530717958647693の値を持つ数学定数です。 これは,円の円周と直径の比の2倍です。 三角関数sin() およびcos() と組み合わせると便利です。

構文

sin(TWO_PI)

cos(TWO_PI)

著作権

p5.js was created by Lauren McCarthy and is developed by a community of collaborators, with support from the Processing Foundation and NYU ITP. Identity and graphic design by Jerel Johnson.

ライセンス

Creative Commons(CC BY-NC-SA 4.0) に従います。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0