私は次の構造を持っています:
struct localframepos
{
double ipos; //local room frame i(x) coordinate, in mm
double cpos; //local room frame c(y) coordinate, in mm
double rpos; //local room frame r(z) coordinate, in mm
localframepos()
{
ipos = 0;
cpos = 0;
rpos = 0;
}
localframepos(double init_ipos, double init_cpos, double init_rpos) //init constructor
{
ipos = init_ipos;
cpos = init_cpos;
rpos = init_rpos;
}
};
次の機能を取得するにはどうすればよいですか。
localframepos positions[] = { {0, .5, .2},
{4.5, 4, .5} };