I have thought about the sin and cos functions.If the sin of "direction" is greater than 0 the orientation is north, if the sin of "direction" is less than 0 the orientation is south.But I can't use the sin and cos functions in EFE.Any idea?