The misc.py
module#
Summary#
Get the intersection points of two circles. |
Description#
Provides auxiliary math functions for PyAnsys Geometry.
Module detail#
- misc.get_two_circle_intersections(x0: ansys.geometry.core.typing.Real, y0: ansys.geometry.core.typing.Real, r0: ansys.geometry.core.typing.Real, x1: ansys.geometry.core.typing.Real, y1: ansys.geometry.core.typing.Real, r1: ansys.geometry.core.typing.Real) tuple[tuple[ansys.geometry.core.typing.Real, ansys.geometry.core.typing.Real], tuple[ansys.geometry.core.typing.Real, ansys.geometry.core.typing.Real]] | None #
Get the intersection points of two circles.
- Parameters:
- x0
Real
x coordinate of the first circle.
- y0
Real
y coordinate of the first circle.
- r0
Real
Radius of the first circle.
- x1
Real
x coordinate of the second circle.
- y1
Real
y coordinate of the second circle.
- r1
Real
Radius of the second circle.
- x0
- Returns:
Notes
This function is based on the following StackOverflow post: https://stackoverflow.com/questions/55816902/finding-the-intersection-of-two-circles
That post is based on the following implementation: https://paulbourke.net/geometry/circlesphere/