moved path parsing logic to Geometry class

This commit is contained in:
Eric Rowell
2012-07-28 16:29:37 -07:00
parent 9631d6e1bb
commit 4ea094f459
6 changed files with 739 additions and 374 deletions

View File

@@ -5200,7 +5200,7 @@ Test.prototype.tests = {
layer.add(path);
var centerParamPoints = path.convertEndpointToCenterParameterization(50, 100, 150, 150, 1, 1, 100, 50, 0);
var centerParamPoints = Kinetic.Geometry.convertEndpointToCenterParameterization(50, 100, 150, 150, 1, 1, 100, 50, 0);
var start = centerParamPoints[4];
// 4 = theta
@@ -5262,7 +5262,7 @@ Test.prototype.tests = {
layer.add(path);
var centerParamPoints = path.convertEndpointToCenterParameterization(250, 100, 150, 150, 1, 0, 100, 50, 0);
var centerParamPoints = Kinetic.Geometry.convertEndpointToCenterParameterization(250, 100, 150, 150, 1, 0, 100, 50, 0);
var start = centerParamPoints[4];
// 4 = theta
@@ -5324,7 +5324,7 @@ Test.prototype.tests = {
layer.add(path);
var centerParamPoints = path.convertEndpointToCenterParameterization(250, 100, 150, 150, 1, 0, 100, 50, 30);
var centerParamPoints = Kinetic.Geometry.convertEndpointToCenterParameterization(250, 100, 150, 150, 1, 0, 100, 50, 30);
var start = centerParamPoints[4];
// 4 = theta