sine static method

num sine(
  1. num ratio
)

Implementation

static num sine(num ratio) => 0.5 - 0.5 * cos(ratio * 2.0 * pi);