Naar de inhoud
GET /v1/multiply

Compose two quaternions

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/quaternion-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}