The Angle edit box allows you to specify a precise rotation angle to apply to your selection.Ĭlick the Apply button to rotate your selection by the value in this box. This is also the option that will be selected by default if you drag the pivot point using your mouse directly in the 2D View. This sixth option allows you to precisely specify the position of the Pivot Point using the X and Y edit boxes. The first five options allow you to snap to the corners and center of your selection. var start myjoint.normal 2D vector normal to the object's side var end - (theirjoint.getglobalrot()) var ang start.angleto(end) setglobalrot(ang) Just calculate the angle between the normal vectors, but be sure to incorporate the global rotation of the stationary vector. On the form there are also six radio button options for snapping the rotation Pivot Point to the selection itself or to a precise position. Hold down the Shift key to temporarily disable snapping while you drag the Pivot Point. The Pivot Point (around which the selection will be rotated) responds to the currently enabled snapping options to help you to position it precisely on significant locations within your artwork. With this form open the additional Pivot Point handle is available (two concentric circles initially positioned at the center of your selection) for you to click and drag in the 2D View. The rotation options form can be activated from the tool icon on the Drawing Tab.Īlternatively you can use the interactive transform mode (where the form is not required) directly from the 2D View. So you'll have c o s x x 2 + y 2 or a r c c o s x x 2 + y 2. Than apply that formula for the given vector and the coordinate vector (1,0). Selected items in the 2D View can be rotated to a new orientation using this tool. From vector algebra you can recall to the formula for finding the angle between two vectors a and b ( c o s a b a b ). multiply the X part of the vector by -1, and then swap X and Y values. Note: The keyboard shortcut R opens the full Rotate form, including access to the moveable rotation Pivot Point.Ĭlicking the selection twice begins interactive transform, which provides the rotation handles but without the advanced options of the Rotate form or access to the Pivot Point. Normally, rotating vectors requires matrix math, but there is a really simple trick for rotating a 2D vector by 90 clockwise: multiply the X part of the vector by -1, then swap the X and Y values.
0 Comments
Leave a Reply. |