Hi, Shane,
I suspect you assumed Math.asin()
is the same as -Math.sin()
. Math.asin(value)
is the arcsine. The arcsine is the reverse sine function (you give a sine value, you get an angle), not the inverted signal sine. That’s why your transform yields unexpected results.
cheers,
Paulo