Create line direction arrow for LineString feature. Basicaly it creates point features at mentioned location with angle as attribut of features. This angle is the line angle at that position. This angle is used to rotate the point feature.
For detail please check the source code Direction.js