Just getting started in Rhino3dm.js (and Javascript for that matter), and running into the following error when I try to define a simple rotation Transform:

Uncaught (in promise) BindingError {name: “BindingError”, message: “function Transform.rotation called with 4 arguments, expected 3 args!”

my code is just:

let rotationTransform = rhino.Transform.rotation(Math.sin(rotation_angle), Math.cos(rotation_angle), axis_vector, pt1);

I’ve used the RhinoCommon version of this Transform plenty of times, and the docs are pretty clear that there are 4 args required, not 3…

FYI, the value of the args are as follows:

Math.sin(rotation_angle) = 0.17410813759359597

Math.cos(rotation_angle) = 0.9847265389049334

axis_vector = [0, 0, -0.5]

pt1 = [0.0000016560283029321, -0.0000016561149323024438, 144.37180070758296]

I know I’m missing something obvious here… Any idea what’s going on?