{"id":"dolphin.math--Vector2","name":"Vector2","owner":"dolphin","package":"dolphin.math","kind":"thing","signature":"external thing Vector2","description":"A vector2 record carrying x, y.","context":"Use deterministic scalar and 2D geometry helpers with explicit finite-input bounds.","parameters":[],"returns":"void","members":[{"name":"x","kind":"field","type":"float","description":"Stores x as float.","signature":"float x","tags":["thing","field","dolphin.math"],"updated":"2026-09-09"},{"name":"y","kind":"field","type":"float","description":"Stores y as float.","signature":"float y","tags":["thing","field","dolphin.math"],"updated":"2026-09-09"},{"name":"Vector2","kind":"constructor","parameters":[{"name":"x","type":"float","description":"X."},{"name":"y","type":"float","description":"Y."}],"returns":"void","signature":"Vector2(float x, float y)","description":"Vector2.","tags":["thing","constructor","dolphin.math"],"updated":"2026-09-09"}],"tags":["cpu","dolphin","dolphin.math","math","source-example","thing"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/math/src/math.yh","line":20,"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 Vector2","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.\nVector2 sample = Vector2(1.0, 1.0)\nConsole.Log(Text.From(sample.x))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_math__vector2\"\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":"9199bce83681f3746143abffa81d11da1c767398081eab52f77ae92cdf824871","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["x","y","Vector2"],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.math--Vector2","json":"https://demonhunterlabs.com/reference/items/dolphin.math--Vector2.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.math--Vector2.md"}
