inverse_point_through_circle#

inverse_point_through_circle(circle, point)#

Perform inverse geometry transformation on a given point with respect to a circle.

Parameters:
  • circle – tuple representing the circle (center as a complex number, radius)

  • point – the complex number representing the point to be inversed.

Returns:

inversed point as a complex number

Description: Given a point P(x, y), a circle with center C(cx, cy), and radius r, this function calculates the inverse geometry transformation of the point with respect to the circle. The inverse point P’(x’, y’) is determined such that OP * OP’ = r^2, where OP is the distance from the center C to the original point P and OP’ is the distance from the center C to the inverse point P’.

#Example: #>>> inverse_point_through_circle((3+4j, 5), 0+0j) #(13.4+14.5j)