Skip to content

Commit fe041d6

Browse files
committed
Added geometry.ccpMul function
1 parent fbb2aba commit fe041d6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/libs/geometry.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ var geometry = {
2020
return geometry.ccp(p1.x - p2.x, p1.y - p2.y);
2121
},
2222

23+
ccpMul: function(p1, p2) {
24+
return geometry.ccp(p1.x * p2.x, p1.y * p2.y);
25+
},
26+
2327
PointZero: function() {
2428
return geometry.ccp(0,0);
2529
},

0 commit comments

Comments
 (0)