CircleOverlap

From VLECK
Jump to: navigation, search

Determine the area that two circles ovelap each other

Syntax

area = CircleOverlap(CircleA; CircleB);

Return value

CircleOverlap returns the amount of area that is shared by two circles.

Parameters

CircleA a vector (x, y, radius) that identifyes a circle
CircleB a vector (x, y, radius) that identifyes a circle


Example


a=(5, 5, 2)
5	5	2

b=7, 7, 2
7	7	2

CircleOverlap(a;b)
2.283185

CircleOverlap(a;a)
12.566371

4*pi()
12.566371