{"uid":"cap_RbH2oY1tcUCTI7b4mvX_n","slug":"minia2a-distance2d-8529633c","name":"minia2a Distance2D","description":"Computes Euclidean distance between points (x1, y1) and (x2, y2) using Math.hypot 🆓 5 free trial calls per signed wallet","url":"https://minia2a.uk/x402/distance2d?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"type":{"type":"string"},"method":{"type":"string"},"bodyType":{"type":"string"},"queryParams":{"type":"object"}}},"output":{"type":"object","properties":{"type":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_USQxsUCmtA3pnjgDKcJ1K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the 2D Euclidean distance between two points given their coordinates","exampleAgentPrompt":"Can you calculate the 2D Euclidean distance between point (3, 4) and point (7, 1)?","exampleUseCases":[{"title":"Game collision proximity check","prompt":"I need to know the 2D distance between position (12, 45) and position (30, 60) so I can tell if two game objects are close enough to collide."},{"title":"Robotics path planning distance","prompt":"What is the straight-line 2D distance between coordinate (0, 0) and coordinate (15, 20) for my robot's path planning?"},{"title":"UI element spacing calculation","prompt":"Can you calculate the pixel distance between point (100, 200) and point (350, 450) on my canvas to check element spacing?"}],"resultDescription":"A numeric value representing the Euclidean (straight-line) distance between two 2D points, computed from the provided coordinate inputs.","failureModes":["Missing or malformed coordinate inputs return an error","Payment not provided results in HTTP 402 response","Invalid query parameter types may cause computation failure","Server unavailability returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call 2D Euclidean distance computation without setting up your own math library, especially in agent workflows where lightweight geometric calculations are needed on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T00:36:55.428Z","isFirstParty":false,"canonicalSlug":"minia2a-distance2d-8529633c"}