J'ai ce code:Dessiner flèche sur la ligne
CGPoint arrowMiddle = CGPointMake((arrowOne.x + arrowTo.x)/2, (arrowOne.y + arrowTo.y)/2);
CGPoint arrowLeft = CGPointMake(arrowMiddle.x-40, arrowMiddle.y);
CGPoint arrowRight = CGPointMake(arrowMiddle.x, arrowMiddle.y + 40);
[arrowPath addLineToScreenPoint:arrowLeft];
[arrowPath addLineToScreenPoint:arrowMiddle];
[arrowPath addLineToScreenPoint:arrowRight];
[[mapContents overlay] addSublayer:arrowPath];
[arrowPath release];
avec cette sortie:
http://img517.yfrog.com/img517/7690/schermafbeelding2010032.png
Que dois-je ajouter pour obtenir la gauche et à droite le au même degré de la ligne + 30 °.
Si quelqu'un a l'algorithme de dessiner une flèche sur une ligne, les moyens le donnent. Peu importe ce langage de programmation est ...
Merci
perrrrrrrrrrrrf !!!! – SpaceDog