Twisted Legendre transformation
  The general framework of Legendre transformation is extended to the case of symplectic groupoids, using an appropriate generalization of the notion of generating function (of a Lagrangian submanifold). 
S. Zakrzewski