Example #1
0
Point2D PointPlusVector(Point2D O, Vector2D v) {
    return PointXY(O.x + v.x, O.y + v.y);
}
Example #2
0
PointXY PointXY::operator+( const double& other ) const
{
    return PointXY(x+other,y+other);
}
Example #3
0
PointXY PointXY::operator*( const double& other ) const
{
    return PointXY(x*other,y*other);
}
Example #4
0
PointXY PointXY::operator+( const PointXY& other ) const
{
    return PointXY(x+other.x,y+other.y);
}