Quadrilateral's length of the diagonals

Description

A quadrilateral is a polygon with four sides (or edges) and four vertices or corners. The interior angles of a simple (and planar) quadrilateral add up to 360 degrees of arc.
The two diagonals of a convex quadrilateral are the line segments that connect opposite vertices.
The length of the diagonals in a convex quadrilateral can be calculated using the law of cosines.

Related formulas

Variables

pDiagolal (opposite to angle B) (m)
aSide (adjacent to angle B) (m)
bSide (adjacent to angle B) (m)
BAngle (between sides a and b) (degree)