Determine if circle1 is completely inside circle2

I am trying to find some sort of equation to determine if circle1 is entirely inside circle2 (not touching).

Here is what Disch said, however some people disagreed so I'm trying to see what it may really be.

I = inner circle
O = outer circle

X = I.x - O.x
Y = I.y - O.y

D = (X*X + Y*Y) <- distance between center points squared

IR = i.radius * i.radius
OR = o.radius * o.radius

if IR + D <= OR, then I is inside O

Thanks for your help
Uh.. why square them? that algorithm will work if none of those are squared.
Alright, I will test that out.
Topic archived. No new replies allowed.