Click here to Skip to main content
15,938,448 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help me to rotate line
my project is
Updated 27-Dec-10 19:22pm

1 solution

have a look at[^] . What u have to do is

1.trasnlate ur line points around orgin. ie ( line_point1 = line_point1- orgin )

2. multiply the point( new_line_point1= RotMatrix * line_point1 ) with rotation matrix

3. back translate to original position.( ie new_line_point1 = new_line_point + orgin )
Share this answer
Dalek Dave 28-Dec-10 2:15am    
Good Link.
jk chan 28-Dec-10 5:31am    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900