acos

概要

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

[p5.js] acos

サンプル

def setup
  background(220)

  a = PI
  c = cos(a)
  ac = acos(c)

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

  a = PI + PI / 4.0
  c = cos(a)
  ac = acos(c)

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

構文

戻値