Getting width and height of gesture?

At a loss to find how to measure mouse/touch input h and w, easy way in C# anyone?

A simple, non-optimized psuedo-Code for calculating the width and height of swipe gesture will be:

Vector2 startPos;

void Update()
{
	if(touchPhase is start for your touch)
	{
		startPos = current position of touch;
	} else if(touchPhase is end for your touch)
	{
		// This delta variable stores the width and height of touch
		Vector2 delta = Mathf.Abs(currentTouchPos - startPos);
	}
}