{"action":"created","issue":{"url":"https://api.github.com/repos/underscorediscovery/luxe/issues/326","labels_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/326/comments","events_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/326/events","html_url":"https://github.com/underscorediscovery/luxe/issues/326","id":107330623,"number":326,"title":"Luxe Vec type and operator overloading","user":{"login":"ProG4mr","id":2106619,"avatar_url":"https://avatars.githubusercontent.com/u/2106619?v=3","gravatar_id":"","url":"https://api.github.com/users/ProG4mr","html_url":"https://github.com/ProG4mr","followers_url":"https://api.github.com/users/ProG4mr/followers","following_url":"https://api.github.com/users/ProG4mr/following{/other_user}","gists_url":"https://api.github.com/users/ProG4mr/gists{/gist_id}","starred_url":"https://api.github.com/users/ProG4mr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProG4mr/subscriptions","organizations_url":"https://api.github.com/users/ProG4mr/orgs","repos_url":"https://api.github.com/users/ProG4mr/repos","events_url":"https://api.github.com/users/ProG4mr/events{/privacy}","received_events_url":"https://api.github.com/users/ProG4mr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T12:48:31Z","updated_at":"2015-09-19T20:42:13Z","closed_at":null,"body":"Using Vec type (instead of Vector) and have access to operations like : v = v1 + v2, would be very useful to implement simple linear movement formulas like: \r\n```\r\np += v * dt + a * dt * dt / 2;\r\nv += a * dt;\r\n```\r\nThe problem is that the haxe compiler complains about using Vector methods:\r\n\r\n```\r\nvar v:Vec = new Vec(0,0);\r\nv.add(v * 2); \r\n```\r\n results in : `luxe.Vec has no field add (Suggestion: _add)`\r\n\r\nAny thoughts on this? Can this feature be added, or am i using the abstract class wrongly? \r\n"},"comment":{"url":"https://api.github.com/repos/underscorediscovery/luxe/issues/comments/141706032","html_url":"https://github.com/underscorediscovery/luxe/issues/326#issuecomment-141706032","issue_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/326","id":141706032,"user":{"login":"NicoM1","id":6273562,"avatar_url":"https://avatars.githubusercontent.com/u/6273562?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoM1","html_url":"https://github.com/NicoM1","followers_url":"https://api.github.com/users/NicoM1/followers","following_url":"https://api.github.com/users/NicoM1/following{/other_user}","gists_url":"https://api.github.com/users/NicoM1/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoM1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoM1/subscriptions","organizations_url":"https://api.github.com/users/NicoM1/orgs","repos_url":"https://api.github.com/users/NicoM1/repos","events_url":"https://api.github.com/users/NicoM1/events{/privacy}","received_events_url":"https://api.github.com/users/NicoM1/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T20:42:13Z","updated_at":"2015-09-19T20:42:13Z","body":"wouldn't you use v + v * 2? isnt that the point of the abstract?\n\nNico\n\nOn Sat, Sep 19, 2015 at 5:48 AM, TiagoLr <notifications@github.com> wrote:\n\n> Using Vec type (instead of Vector) and have access to operations like : v\n> = v1 + v2, would be very useful to implement simple linear movement\n> formulas like:\n>\n> p += v * dt + a * dt * dt / 2;\n> v += a * dt;\n>\n> The problem is that the haxe compiler complains about using Vector methods:\n>\n> var v:Vec = new Vec(0,0);\n> v.add(v * 2);\n>\n> results in : luxe.Vec has no field add (Suggestion: _add)\n>\n> Any thoughts on this? Can this feature be added, or am i using the\n> abstract class wrongly?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/underscorediscovery/luxe/issues/326>.\n>\n"}}