Home | History | Annotate | Download | only in benchmarks

Lines Matching full:scale

451  * (v1 * scale) + offset". Either v1 or v2 may be changed to maintain
452 * this relationship but the scale factor and offset are considered
455 function ScaleConstraint(src, scale, offset, dest, strength) {
457 this.scale = scale;
469 this.scale.addConstraint(this);
475 if (this.scale != null) this.scale.removeConstraint(this);
481 this.scale.mark = this.offset.mark = mark;
489 this.v2.value = this.v1.value * this.scale.value + this.offset.value;
491 this.v1.value = (this.v2.value - this.offset.value) / this.scale.value;
503 out.stay = ihn.stay && this.scale.stay && this.offset.stay;
827 * other by a simple linear transformation (scale and offset). The
829 * mapping and to change the scale and offset factors.
833 var scale = new Variable("scale", 10);
843 new ScaleConstraint(src, scale, offset, dst, Strength.REQUIRED);
850 change(scale, 5);