{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/6781","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/6781/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/6781/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/6781/events","html_url":"https://github.com/mrdoob/three.js/issues/6781","id":92789431,"number":6781,"title":"enchncmnt: add vector premultiplied by scalar","user":{"login":"makc","id":242577,"avatar_url":"https://avatars.githubusercontent.com/u/242577?v=3","gravatar_id":"","url":"https://api.github.com/users/makc","html_url":"https://github.com/makc","followers_url":"https://api.github.com/users/makc/followers","following_url":"https://api.github.com/users/makc/following{/other_user}","gists_url":"https://api.github.com/users/makc/gists{/gist_id}","starred_url":"https://api.github.com/users/makc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makc/subscriptions","organizations_url":"https://api.github.com/users/makc/orgs","repos_url":"https://api.github.com/users/makc/repos","events_url":"https://api.github.com/users/makc/events{/privacy}","received_events_url":"https://api.github.com/users/makc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Enhancement","name":"Enhancement","color":"deffdb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T04:37:31Z","updated_at":"2015-07-03T06:12:50Z","closed_at":null,"body":"I find myself calculating sums like number1 * vector1 + number2 * vector2 + .... quite often (mostly for averaging or interpolating). Far more often than I had to use addScalar method (which was never). But in order to do so I need to create temporary vector, set this vector for every addend, multiplyScalar it and then finally add it. Or, I could just inline everything and not use Vector3 methods.\r\n\r\nWould it not be nice to have something like\r\n```\r\n\taddScaledVector: function ( v, s ) {\r\n\r\n\t\tthis.x += v.x * s;\r\n\t\tthis.y += v.y * s;\r\n\t\tthis.z += v.z * s;\r\n\r\n\t\treturn this;\r\n\r\n\t},\r\n```\r\ninstead?\r\n\r\nVector3 already has lerp, which is fine for two vectors, but it can be 3 vectors (think vertex normals) or more.\r\n\r\nSame applies to Vector2 (uv and stuff)."},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/118248135","html_url":"https://github.com/mrdoob/three.js/issues/6781#issuecomment-118248135","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/6781","id":118248135,"user":{"login":"WestLangley","id":1000017,"avatar_url":"https://avatars.githubusercontent.com/u/1000017?v=3","gravatar_id":"","url":"https://api.github.com/users/WestLangley","html_url":"https://github.com/WestLangley","followers_url":"https://api.github.com/users/WestLangley/followers","following_url":"https://api.github.com/users/WestLangley/following{/other_user}","gists_url":"https://api.github.com/users/WestLangley/gists{/gist_id}","starred_url":"https://api.github.com/users/WestLangley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WestLangley/subscriptions","organizations_url":"https://api.github.com/users/WestLangley/orgs","repos_url":"https://api.github.com/users/WestLangley/repos","events_url":"https://api.github.com/users/WestLangley/events{/privacy}","received_events_url":"https://api.github.com/users/WestLangley/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T06:12:50Z","updated_at":"2015-07-03T06:12:50Z","body":"Sounds like a good idea to me.\r\n"}}