atan

概要

p5.jsリファレンス(参考情報)

[p5.js] atan

サンプル

def setup
  background(220)

  a = PI / 3.0
  t = tan(a)
  at = atan(t)

  div = createDiv("#{a} #{t} #{at}")
  div.position(10, 10)
  div.style('font-size', '14px')
  div.style('width', '100px')
end
def setup
  background(220)

  a = PI + PI / 3.0
  t = tan(a)
  at = atan(t)

  div = createDiv("#{a} #{t} #{at}")
  div.position(10, 10)
  div.style('font-size', '14px')
  div.style('width', '100px')
end

構文

戻値