def lat_long_to_xyz(S, T): x = tf.cos(T) * tf.sin(S) y = tf.sin(T) z = tf.cos(T) * tf.cos(S) return x, y, z