brepjs API Reference
    Preparing search index...

    Function jointTrajectory

    • Sample a straight-line path in joint space from from to to over steps segments, yielding steps + 1 samples (inclusive of both endpoints). Each sample carries the interpolated per-DOF values (clamped to range) and the forward-kinematics poses of every node. Joints absent from from/to hold their stored value at both ends.

      Parameters

      • assembly: AssemblyNode
      • from: Readonly<Record<string, number | readonly number[]>>
      • to: Readonly<Record<string, number | readonly number[]>>
      • steps: number

      Returns TrajectorySample[]