cross2circ

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 2.8, Creation date: 2016-01-08, Last change: 2025-09-14

returns the crossing points of two circles

Description

Similar to circcirc (mapping toolbox) but without using a toolbox plus drawing the result. Only real solutions are return; else NaN NaN

Change name to cross2C, crossLC

See Also: tangent2circ , wofcross2circ , crosscircline , PLof3dist , PLchordof2PR , crossz , PLcross2Lines

Example Illustration

 missing image of cross2circ(A0,B0,ra,rb);

Syntax

[Q1,Q2,x,y,e,o]=cross2circ(A0,B0,ra,rb);

Input Parameter

A0: Center of circle A
B0: Center of circle B
ra: Radius of circle A
rb: Radius of circle B

Output Parameter

Q1: Solution right hand to A0B0 for positive x
Q2: Solution left hand to A0B0 for positive x
x: distance from A0 to B0
y: orthogonal from A0+e*x
e: unit direction vector
o: unit orthogonal vector

Examples

try
cross2circ([0 0],[4 0],4,2) % 2 Solutions
cross2circ([0 0],[4 0],2,2) % 1 Solution
cross2circ([0 0],[4 0],1,6) % No Solution




Copyright 2016-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21