Closed vorg closed 1 year ago
Do we know why clamp is here? https://github.com/dmnsgn/frenet-serret-frames/blob/main/index.js#L110
let theta = Math.acos(clamp(vec3.dot(firstNormal, lastNormal), 0, 1)); theta /= frames.length - 1;
Removing clamp fixes the issue.
It should actually be clamp between -1 and 1. Will fix in the next version.
Fixed in v3.0.0
Do we know why clamp is here? https://github.com/dmnsgn/frenet-serret-frames/blob/main/index.js#L110
Removing clamp fixes the issue.