Geometry
Line-plane intersection 3D API
Intersection of an infinite 3D line with a plane (point + normal), flagging parallel and in-plane cases. Answers 'where does this line pierce the plane?'.
Price$0.02per request
MethodPOST
Route/v1/geometry/line-plane-intersect
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
intersectionlineplanenormal3dgeometry
API URL
Integration docshttps://x402.hexl.dev/v1/geometry/line-plane-intersectExample request
{
"point": [
0,
0,
5
],
"direction": [
0,
0,
-1
],
"planePoint": [
0,
0,
0
],
"planeNormal": [
0,
0,
1
]
}Example response
{
"intersects": true,
"parallel": false,
"t": 5,
"point": [
0,
0,
0
]
}Input schema
{
"type": "object",
"required": [
"point",
"direction",
"planePoint",
"planeNormal"
],
"properties": {
"point": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
0,
0,
5
]
]
},
"direction": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
0,
0,
-1
]
]
},
"planePoint": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
0,
0,
0
]
]
},
"planeNormal": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
0,
0,
1
]
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}