agentchat.contrib.captainagent.tools.math
agentchat.contrib.captainagent.tools.math.calculate_reflected_point
calculate_reflected_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’.