I'm trying to port this Javascript function (shortened for clarity):
Vertices.scale = function(vertices, scaleX, scaleY, point) {
point = point || Vertices.centre(vertices);
};
point is a vector, i.e. an object of the form { x: 5, y: 10 }. Vertices.centre(vertices) returns a similar vector object.
As far as I can see, there is no overloading of the '||' operator in the source code. In fact, I don't think you can overload operators in Javascript.
What does this code mean in plain English then?