public uint ToParam() { uint param_x = unchecked((ushort)(short)x); uint param_y = unchecked((ushort)(short)y); return (param_y << 16) | param_x; }