more function

add GetOrbitDirection
fixed ToRGB