paperjs / paperjs.org

The source of the Paper.js website http://paperjs.org, translated to the static pages in https://github.com/paperjs/paperjs.github.io by running it through https://github.com/paperjs/woods in a Travis CI worker on each commit.
48 stars 34 forks source link

Math Functions vs Math Operators in Reference #23

Open vrracing opened 8 years ago

vrracing commented 8 years ago

The doc is very good. Well above average for an open source project. I thought this might help some folks...

At... http://paperjs.org/reference/point/#add-point

the example shows using the Math Operator, not the Math Operator Function. When one is converting from PaperScript to JavaScript this is important. I think line 3 of the example should read...

var result = point1.add( point2 );

instead of the current...

var result = point1 + point2;