cpp a*b*sin(theta)/2
cpp a+b+(a+b)*sin(theta)/2
cpp a*b*cos(theta)/2
cpp a+b+sqrt(a*a+b*b-2*a*b*cos(theta))