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