S32 PolygonObject::getVel(lua_State *L) { return returnPoint(L, Point(0,0)); }
const Point Point::operator/(double factor) const { assert(factor != 0); Point returnPoint(*this); returnPoint /= factor; return returnPoint; }
const Point Point::operator*(double factor) const { Point returnPoint(*this); returnPoint *= factor; return returnPoint; }
const Point operator-(const Point &leftSide, const Point &rightSide) { dimEquivTest(leftSide, rightSide); Point returnPoint(leftSide); returnPoint -= rightSide; return returnPoint; }
Point3D sub( Point3D p1, Point3D p2 ) { Point3D returnPoint( p1.x - p2.x, p1.x - p2.x, p1.z - p2.z ); return returnPoint; }
Point3D Point3D::add( Point3D p1, Point3D p2 ) { Point3D returnPoint( p1.x + p2.x, p1.x + p2.x, p1.z + p2.z ); return returnPoint; }