rotate node

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

rotate node

Postby glabz74 » April 14th, 2013, 10:28 am

Good day all

Could somebody give a hint ? How do rotate canvas node (triangle or Rectangular, for example )?
User avatar
glabz74
Active Member
Active Member
 
Posts: 11
Joined: October 28th, 2011, 11:03 am

Re: rotate node

Postby Kambiz » April 15th, 2013, 4:11 pm

Most of node classes are derived from TPolygonalNode class. This objects holds the vertices of the shape. Theoretically you can rotate the vertex points array of a TPolygonalNode object.

You can use RotatePoints global procedure to rotate an array of points around and arbitrary origin.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 33 guests

cron