[refactored] lowerBound and upperBound into single clampTo operator

Authored by appsforartists on Oct 6 2017, 10:05 PM.

Description

[refactored] lowerBound and upperBound into single clampTo operator

Summary:
Continuation of https://github.com/material-motion/material-motion-js/issues/193

Since we are using named args now, it doesn't make sense to have separate upperBound and lowerBound operators. The combined operator uses _mathOperator under the hood, so it works on points as well as numbers.

Reviewers: O2 Material Motion, O3 Material JavaScript platform reviewers, Material Motion, vietanh

Reviewed By: Material Motion, vietanh

Subscribers: vietanh

Tags: Material Motion

Differential Revision: http://codereview.cc/D3405

Details