vec2 offsetForChild(int i) { float angle = cast(float)i / numChildren * pi * 2; return vec2(cos(angle), sin(angle)) * radius; }