import math


def euler_to_orientation( yaw=0.0, pitch = 0.0 ):
    """convert euler angles into orientation vector"""
    z = math.sin( pitch )
    xyr = math.cos( pitch )
    y = xyr*math.sin( yaw )
    x = xyr*math.cos( yaw )
    return x, y, z