Add direction cosines support