{"id":"dolphin.math--DolphinDistance","name":"DolphinDistance","owner":"dolphin","package":"dolphin.math","kind":"function","signature":"external DolphinDistance(float leftX, float leftY, float rightX, float rightY) returns float","description":"Dolphin distance.","context":"Use deterministic scalar and 2D geometry helpers with explicit finite-input bounds.","parameters":[{"name":"leftX","type":"float","description":"Supply left x as float."},{"name":"leftY","type":"float","description":"Supply left y as float."},{"name":"rightX","type":"float","description":"Supply right x as float."},{"name":"rightY","type":"float","description":"Supply right y as float."}],"returns":"float","members":[],"tags":["cpu","dolphin","dolphin.math","function","math","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/math/src/math.yh","line":53,"sha256":"d2a23b9808124b6636b97b458b256370a948af66f1f376c4e9ae4e2b40dd17a6"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use DolphinDistance","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using dolphin.math\n\n// Use deterministic scalar and 2D geometry helpers with explicit finite-input bounds.\nfloat leftX = 1.0\nfloat leftY = 1.0\nfloat rightX = 1.0\nfloat rightY = 1.0\nfloat result = DolphinDistance(leftX, leftY, rightX, rightY)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_math__dolphindistance\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"4701c7b6f726af3ddbc776dffe0d6c67c47359541b6a9defb7e510b8af3c57c8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.math--DolphinDistance","json":"https://demonhunterlabs.com/reference/items/dolphin.math--DolphinDistance.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.math--DolphinDistance.md"}
