I am rotating a 2D rectangular shape built on 4 points, starting from AABB values:
// start from AABB var bBox = {minX:-0.2,maxX:+0.2,minZ:-2.2,maxZ:+0.2}; /