Geometry/Points and Lines/10250.cpp
// rotate p by theta degrees with relation to origin (0,0)
rotate p by theta degrees with relation to origin (0,0)
rotate p by theta degrees with relation to origin ( 0 0 )
point rotate(point p, double theta) {
    double rad = DEG_to_RAD(theta);
    return point(p.x * cos(rad) - p.y * sin(rad),
                 p.x * sin(rad) + p.y * cos(rad));
}
point rotate ( point p , double theta ) { double rad = DEG_to_RAD ( theta ) ; return point ( p . x * cos ( rad ) - p . y * sin ( rad ) , p . x * sin ( rad ) + p . y * cos ( rad ) ) ; }
rotate p by theta degrees with relation to origin (0,0)
rotate p by theta degrees with relation to origin ( 0 0 )