{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/16106","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/16106/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/16106/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/16106/events","html_url":"https://github.com/godotengine/godot/pull/16106","id":292099633,"number":16106,"title":"GDScript: generalize lerp","user":{"login":"poke1024","id":11859538,"avatar_url":"https://avatars3.githubusercontent.com/u/11859538?v=4","gravatar_id":"","url":"https://api.github.com/users/poke1024","html_url":"https://github.com/poke1024","followers_url":"https://api.github.com/users/poke1024/followers","following_url":"https://api.github.com/users/poke1024/following{/other_user}","gists_url":"https://api.github.com/users/poke1024/gists{/gist_id}","starred_url":"https://api.github.com/users/poke1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poke1024/subscriptions","organizations_url":"https://api.github.com/users/poke1024/orgs","repos_url":"https://api.github.com/users/poke1024/repos","events_url":"https://api.github.com/users/poke1024/events{/privacy}","received_events_url":"https://api.github.com/users/poke1024/received_events","type":"User","site_admin":false},"labels":[{"id":73330066,"url":"https://api.github.com/repos/godotengine/godot/labels/enhancement","name":"enhancement","color":"44bbff","default":true},{"id":279098082,"url":"https://api.github.com/repos/godotengine/godot/labels/topic:gdscript","name":"topic:gdscript","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/7","html_url":"https://github.com/godotengine/godot/milestone/7","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/7/labels","id":2529217,"number":7,"title":"3.1","description":"","creator":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars0.githubusercontent.com/u/4701338?v=4","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"open_issues":829,"closed_issues":539,"state":"open","created_at":"2017-05-18T13:33:56Z","updated_at":"2018-03-14T14:43:03Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2018-01-27T07:17:17Z","updated_at":"2018-03-14T19:04:07Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/godotengine/godot/pulls/16106","html_url":"https://github.com/godotengine/godot/pull/16106","diff_url":"https://github.com/godotengine/godot/pull/16106.diff","patch_url":"https://github.com/godotengine/godot/pull/16106.patch"},"body":"Allow `lerp` to be used with `Vector2`, `Vector3`, `Color`, e.g. `lerp(Color(0.1, 0.2, 0.1), Color(0.5, 0.2, 0.8), t)`. Yes, you could call `linear_interpolate` on these types, but I think it would be nice if `lerp` just works too."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/373139257","html_url":"https://github.com/godotengine/godot/pull/16106#issuecomment-373139257","issue_url":"https://api.github.com/repos/godotengine/godot/issues/16106","id":373139257,"user":{"login":"tagcup","id":34866256,"avatar_url":"https://avatars1.githubusercontent.com/u/34866256?v=4","gravatar_id":"","url":"https://api.github.com/users/tagcup","html_url":"https://github.com/tagcup","followers_url":"https://api.github.com/users/tagcup/followers","following_url":"https://api.github.com/users/tagcup/following{/other_user}","gists_url":"https://api.github.com/users/tagcup/gists{/gist_id}","starred_url":"https://api.github.com/users/tagcup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tagcup/subscriptions","organizations_url":"https://api.github.com/users/tagcup/orgs","repos_url":"https://api.github.com/users/tagcup/repos","events_url":"https://api.github.com/users/tagcup/events{/privacy}","received_events_url":"https://api.github.com/users/tagcup/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T19:04:07Z","updated_at":"2018-03-14T19:04:07Z","author_association":"CONTRIBUTOR","body":"> indeed, both are technically linear interpolation, just in difference reference frames.\r\n\r\n@Causeless No, slerp is independent of the reference frame, as opposed to being tied to one. That's the point, it makes no sense otherwise.\r\n\r\n> Quaternion, which doesn't necessarily represent a rotation, I think it's misleading.\r\n\r\nQuaternion *is* a representation of rotation (just like *any* Lie group is; quaternions are double cover of rotations in 3D space with positive metric signature). More precisely, it's the Spin(3) [representation](https://en.wikipedia.org/wiki/Representation_of_a_Lie_group) of rotations. The \"usual\" rotation matrix is SO(3) representation.\r\n\r\nThe only reason I think it's \"misleading\" is because programmers think they understand rotations or quaternions but what they *think* they know is either totally wrong or incomplete, rather than being aware of what they actually don't actually know (and I'm not saying this in an offensive manner, so please don't take this negatively, but you just reinforced my point)."}}
{"actor":{"display_login":"tagcup"}}