I wonder how to calculate pixels of swipe length using ZenGL?

The game would apply force based on the touch size line. I would like to calculate that line from touch start to the touch end and get the pixels size value.