CIRCLE ROTATE: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: {{Command|syntax=CIRCLE_ROTATE <circle number>, <xc>, <yc>, <angle> |description=This command is used to rotate a circle about given co-ordinates for the new center of the ...
 
MikeO (talk | contribs)
No edit summary
 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Command|syntax=CIRCLE_ROTATE <[[circle number]]>, <[[xc]]>, <[[yc]]>, <[[angle]]>
[[Geometry:Creating_Geometry|{{Up}}]]
|description=This command is used to rotate a circle about given co-ordinates for the new center of the circle and the radius to rotate it.


|param1=<circle>|param1_desc= The number of the circle (1 to 100) to be defined.This is a number used by the macro to create other geometry.
{{Command|syntax=[[Image:circle_rotate.png|right|CIRCLE_ROTATE]]CIRCLE_ROTATE <circle number>, <xc>, <yc>, <angle>
|param2=<xc>|param2_desc= The value of the center of the circle for the x axis.
|description=:Rotate a [[macro_circle|circle]].
|param3=<yc>|param3_desc= The value of the center of the circle for the y axis.
 
|param4=<angle>|param4_desc= An angle value can be in either degrees or radians. Positive angles indicate a [[CCW]] direction, negative for [[CW]].
|param1=<circle number>|param1_desc= {{create circle number}}
|param2=<xc>|param2_desc= {{xc}}
|param3=<yc>|param3_desc= {{yc}}
|param4=<angle>|param4_desc= {{angle}}
}}
}}


===Example===
===Example===
:- CIRCLE_
:CIRCLE_ROTATE 1, 1, 3, 90


:CIRCLE_ROTATE 2, 1, 3, 270
[[Category:Geometry]]
[[Category:Geometry]]

Latest revision as of 15:15, 11 August 2010

Up

Command

CIRCLE_ROTATE
CIRCLE_ROTATE
CIRCLE_ROTATE <circle number>, <xc>, <yc>, <angle>


Rotate a circle.

Parameters

<circle number>
The number of the circle to be created.
A number between 1 and 100.
<xc>
X co-ordinate of the center point.
<yc>
Y co-ordinate of the center point.
<angle>
angle value, either degrees or radians. Positive angles indicate a CCW direction, negative for CW.

Use the DEGREES or RADIANS commands to switch between the two angle modes.

Example

CIRCLE_ROTATE 1, 1, 3, 90
CIRCLE_ROTATE 2, 1, 3, 270