static area( contour ) {

		const n = contour.length;
		let a = 0.0;

		for ( let p = n - 1, q = 0; q < n; p = q ++ ) {

			a += contour[ p ].x * contour[ q ].y - contour[ q ].x * contour[ p ].y;

		}

		return a * 0.5;

	}
Calculate area of a ( 2D ) contour polygon.

@param {Array<Vector2>} contour - An array of 2D points.
@return {number} The area.