Signed area (source code)

= Signed area

The <area> of a planar oriented region with a sign determined by orientation. For a <triangle> with cyclically ordered points $A,B,C$, it is $\tfrac12((B-A)\times(C-A))$, using the <two-dimensional cross product>; reversing the order reverses the sign.