{"uid":"cap_5X6SS0TGiDhg-HDYvkRU-","slug":"unit-quaternion-shortest-rotation-slerp-keyframe-generator-4e005964","name":"Unit Quaternion Shortest-Rotation SLERP Keyframe Generator","description":"Compute constant-angular-velocity orientation keyframes.","url":"https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B001/unit-quaternion-shortest-rotation-slerp?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["slerp"],"properties":{"slerp":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["start","end","fractions"],"properties":{"end":{"type":"array","items":{"type":"number","maximum":1000000,"minimum":-1000000},"maxItems":4,"minItems":4},"start":{"type":"array","items":{"type":"number","maximum":1000000,"minimum":-1000000},"maxItems":4,"minItems":4},"fractions":{"type":"array","items":{"type":"number","maximum":1,"minimum":0},"maxItems":32,"minItems":1}},"additionalProperties":false},"claim":{}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a-hWS6odbDki94gdOjtyT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes constant-angular-velocity orientation keyframes by performing spherical linear interpolation (SLERP) between two unit quaternions along the shortest rotation arc.","exampleAgentPrompt":"Interpolate between quaternion [0, 0, 0, 1] and [0.707, 0, 0.707, 0] at fractions [0.0, 0.25, 0.5, 0.75, 1.0] using the shortest-rotation SLERP so I get smooth constant-angular-velocity keyframes for my animation rig.","exampleUseCases":[{"title":"Camera pan keyframe generation","prompt":"I need smooth constant-angular-velocity keyframes for a camera pan — start quaternion is [0, 0, 0, 1] and end is [0, 0.707, 0, 0.707], sampled at fractions [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]. Can you SLERP those along the shortest arc for me?"},{"title":"Robotic arm joint interpolation","prompt":"My robot arm needs to move from orientation [0.5, 0.5, 0.5, 0.5] to [0, 0, 1, 0] smoothly. Generate interpolated quaternion keyframes at fractions [0.0, 0.33, 0.67, 1.0] along the shortest rotation path."},{"title":"3D model rotation animation path","prompt":"I'm animating a 3D model spinning from start quaternion [1, 0, 0, 0] to [0, 0.383, 0, 0.924] and I want 8 evenly spaced keyframes — fractions from 0 to 1 in steps of 0.142 — using shortest-rotation SLERP."}],"resultDescription":"Returns a structured artifact containing an array of interpolated unit quaternions at each requested fraction, computed via spherical linear interpolation along the shortest rotation arc between the start and end quaternions, maintaining constant angular velocity throughout.","failureModes":["Non-unit quaternion inputs may produce geometrically incorrect results or errors","Fractions outside [0,1] are rejected by schema validation","More than 32 fraction samples not supported — returns schema validation error","Start or end quaternion arrays not of length 4 are rejected","Missing required fields (start, end, fractions, claim) return 400-level errors","Payment not provided or insufficient USDC balance returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need mathematically rigorous constant-angular-velocity rotation interpolation between two orientations expressed as unit quaternions, specifically along the shortest arc. Prefer this over Euler-angle or linear quaternion interpolation when gimbal lock avoidance and smooth angular velocity are critical — e.g. camera rigs, robotics joints, aerospace attitude control, or character animation rigs requiring predictable rotation paths. Best suited for agents that already work in quaternion space.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T07:43:45.484Z","isFirstParty":false,"canonicalSlug":"unit-quaternion-shortest-rotation-slerp-keyframe-generator-4e005964"}