/v1/split
Split at t
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/bezier-api/v1/split" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bezier-api/v1/split", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bezier-api/v1/split");
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/bezier-api/v1/split",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "de Casteljau split at t: left_curve and right_curve share the split point and together reproduce the original.",
"inputs": {
"t": 0.5,
"degree": 3
},
"left_curve": [
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0.5
},
{
"x": 0.25,
"y": 0.75
},
{
"x": 0.5,
"y": 0.75
}
],
"right_curve": [
{
"x": 0.5,
"y": 0.75
},
{
"x": 0.75,
"y": 0.75
},
{
"x": 1,
"y": 0.5
},
{
"x": 1,
"y": 0
}
],
"split_point": {
"x": 0.5,
"y": 0.75
}
},
"meta": {
"timestamp": "2026-06-04T18:38:03.574Z",
"request_id": "649f0ab6-b241-4d68-b87b-4fb33e4ac544"
},
"status": "ok",
"message": "Split curve",
"success": true
}