Converted groupcoord to C++.

Change-Id: I8b840ccd3261fabaeb702302821d36279473e1dd