/v1/multiply
Compose two quaternions
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/quaternion-api/v1/multiply" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/quaternion-api/v1/multiply", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/quaternion-api/v1/multiply");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/quaternion-api/v1/multiply",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "q1 ⊗ q2 (Hamilton product) — applies q2 then q1",
"matrix": [
[
-1,
0,
0
],
[
0,
-1,
0
],
[
0,
0,
1
]
],
"axis_angle": {
"axis": [
0,
0,
1
],
"angle_deg": 180
},
"quaternion": {
"w": 0,
"x": 0,
"y": 0,
"z": 1
},
"euler_zyx_deg": {
"yaw_deg": 180,
"roll_deg": 0,
"pitch_deg": 0
}
},
"meta": {
"timestamp": "2026-06-03T17:42:15.957Z",
"request_id": "88f7b8c3-369a-4937-8ca0-2e129bebc0f0"
},
"status": "ok",
"message": "Multiply quaternions",
"success": true
}