Catalog/geometry-triangle-solver

Geometry

Solve triangle SSS/SAS/ASA/SSA API

Solve a triangle from partial data (SSS, SAS, ASA/AAS, or ambiguous SSA) using the laws of sines and cosines, recovering all sides, angles and area. Answers 'given two sides and an angle, what is the rest of the triangle?'.

Price$0.03per request
MethodPOST
Route/v1/geometry/triangle-solver
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
trianglesolverlaw-of-sineslaw-of-cosinesssssasssatrigonometry
API URLhttps://x402.hexl.dev/v1/geometry/triangle-solver
Integration docs
Example request
{
  "a": 3,
  "b": 4,
  "c": 5
}
Example response
{
  "method": "SSS",
  "sides": {
    "a": 3,
    "b": 4,
    "c": 5
  },
  "anglesDeg": {
    "A": 36.869897646,
    "B": 53.130102354,
    "C": 90
  },
  "area": 6,
  "perimeter": 12
}
Input schema
{
  "type": "object",
  "properties": {
    "a": {
      "type": "number",
      "description": "side opposite angle A",
      "examples": [
        3
      ]
    },
    "b": {
      "type": "number",
      "examples": [
        4
      ]
    },
    "c": {
      "type": "number",
      "examples": [
        5
      ]
    },
    "A": {
      "type": "number",
      "description": "angle in degrees opposite side a"
    },
    "B": {
      "type": "number"
    },
    "C": {
      "type": "number"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}