calculate_reflected_point

def calculate_reflected_point(point)

Calculates the reflection point of a given point about the line y=x.

Arguments:

  • point dict - A dictionary representing the coordinates of the point. The dictionary should have keys ‘x’ and ‘y’ representing the x and y coordinates respectively.

Returns:

  • dict - A dictionary representing the coordinates of the reflected point. Its keys are ‘x’ and ‘y’.