Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Numeric functions >

Collision_CTOC

Previous pageReturn to chapter overviewNext page

 

Description

 

Return %TRUE if two circles are colliding.

 

Syntax

 

n = Collision_CTOC(X1, Y1, R1, X2, Y2, R2)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

X1

Numeric

No

Center X position of the first circle

Y1

Numeric

No

Center Y position of the first circle

R1

Numeric

No

Radius of the first circle

X2

Numeric

No

Center X position of the second circle

Y2

Numeric

No

Center Y position of the second circle

R2

Numeric

No

Radius of the second circle

 

Remarks

 

Restrictions

 

See also

 

Between, Outside, MinMax

 

Examples