How can I perform rotation of my satellite sensor in relation to nadir?

Another (cleaner and more complete) code example is available here : FOV and grountrack with FootprintOverlapDetector

Cheers,
Vincent CUCCHIETTI