Rotate an array of lines
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I need to rotate a line (and posteriorly an array of lines) on a given alpha from a variable coordinate origin ( x,y ). I need to use the command line() and I already tried command rotate() with no luck.
Can some one please help me out? :)
Thanks in advance
2 commentaires
Réponses (4)
Jakob Sørensen
le 7 Mai 2012
If you for some reason can't get the built in functions to do as you want, you could always try it the old school way (doing the math yourself)...
0 commentaires
bym
le 6 Mai 2012
h = line([2,5],[2,2]);
rotate(h,[0,0,1],45)
2 commentaires
Jan
le 6 Mai 2012
As long as you describe the problems only by "with no luck" and "without the result I needed", it is hard to guess, what you are looking for. It is much more efficient to invest time in answering question, than in guessing, what the question is. So please post more details - by editing the original question, and not as answer or comment. Thanks.
Voir également
Catégories
En savoir plus sur Motion Modeling and Coordinate Systems dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!