#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstdio>
using namespace std;

int main(){
    int n;
    cin>>n;
    while(n--){
        float x1,y1,x2,y2,x3,y3;
        cin>>x1>>y1>>x2>>y2>>x3>>y3;
        float p1,p2,p3;
        p1 = (max((fabs(x1 - x2),fabs(x1 - x3)),fabs(x2 - x3))) / 2.000;
        p2 = (max((fabs(y1 - y2),fabs(y1 - y3)),fabs(y2 - y3))) / 2.000;
        p3 = sqrt((p1 - x1) * (p1 - x1) + (p2 - y1) * (p2 - y1));
        printf("%4.3f %4.3f %4.3f",p1,p2,p3);
    }
    return 0;
}

