Skip to content

Instantly share code, notes, and snippets.

Martin "Nexii" Pitt Martin-Pitt

Block or report user

Report or block Martin-Pitt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View transform.js
/// Transform.js
Four rules for interpolating transform lists:
* If both lists are none, return nothing.
* If one of the lists is none, create a equivalent identity list, continue to next rule.
* If both lists have the same amount of arguments (having a common primitive), interpolate each pair of transform function and return computed value.
* else in worst case, convert both lists to matrices and interpolate those, return computed value.
To minimize GC, we have only one static object.
You can’t perform that action at this time.