Skip to content

Commit

Permalink
fixed chaining for some Matter.Vertices methods
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jun 3, 2014
1 parent 9a55b0c commit 8746185
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/geometry/Vertices.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ var Vertices = {};
vertices[i].x += vector.x;
vertices[i].y += vector.y;
}
}
}

return vertices;
};

/**
Expand All @@ -181,6 +183,8 @@ var Vertices = {};
vertice.x = point.x + (dx * cos - dy * sin);
vertice.y = point.y + (dx * sin + dy * cos);
}

return vertices;
};

/**
Expand Down

0 comments on commit 8746185

Please sign in to comment.