TMoon.Rotation

delphimoon

TMoon.Rotation

TMoon

Top  Previous  Next

 

Rotate the image of the moon.

 

property Rotation: TRotate;

 

Description

Rotate the image of the moon optionally by 90, 180 or 270 degrees (counterclockwise). Especially the rotation by 180 degrees is needed for locations on the southern hemisphere, as the moon is seen rotated from there. For locations near the equator the rotations of 90 or 270 degrees can be useful, however, the optimum value for the rotation changes with the horizontal position of the moon. Thus the value rot_location calculates the angle fitting the current observer's location and time, as calculated with the bright limb angle. For any other fixed angle as set with RotationAngle rot_angle can be used.

 

The first four values are retained for compatibility, as the rot_angle value can be used to get these angles by setting the RotationAngle property appropriately as well.