Use correct term for curve parameter renormalization.

This commit is contained in:
Jürg Lehni 2015-09-12 22:13:18 +02:00
parent 085cdd74a2
commit a0730756c1
2 changed files with 4 additions and 4 deletions

View file

@ -1327,9 +1327,9 @@ new function() { // Scope for intersection using bezier fat-line clipping
&& t1 <= (param.endConnected ? tMax : 1)) {
if (t2 == null)
t2 = Curve.getParameterOf(v2, p2.x, p2.y);
var reparametrize = param.reparametrize;
if (reparametrize) {
var res = reparametrize(t1, t2);
var renormalize = param.renormalize;
if (renormalize) {
var res = renormalize(t1, t2);
t1 = res[0];
t2 = res[1];
}

View file

@ -111,7 +111,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
startConnected: length1 === 1 && p1.equals(p2),
// After splitting, the end is always connected:
endConnected: true,
reparametrize: function(t1, t2) {
renormalize: function(t1, t2) {
// Since the curve was split above, we need to
// adjust the parameters for both locations.
return [t1 / 2, (1 + t2) / 2];