Settings

Choose language

rotate((object1,object2,...),point,angle,(newobject1,newobject2))

rotate
Rotates objects around a given point at a given angle. This operator comes very handle for darts manipulation, draping, etc.

Function parameters


  • list of objects in brackets, separated by comma
  • point
  • angle in degrees
  • (optional) list of new objects in brackets, separated by comma OR name suffix for new objects in double or single quotation marks

    Usage


    If you just want to rotate objects and don't need to keep the original ones, leave the third parameter blank, e.g.: p1=point(10,10);
    p2=point(50,50);
    curve(p1,p2,0,90)
    rotate((c_p1_p2),p2,10)

    See example on the right



    If you would like to keep both the original and the rotated objects, you have two options:

    1) Name all new objects one by one, in the same order as the original objects, e.g.:

    rotate((p1,p2,c_p1_p2),p2,10,(p3,p4,newcurve))



    2) Create a suffix for new objects that will be automatically added to the names of existing objects, e.g.:

    rotate((p1,p2,c_p1_p2),p2,10,"n")
  • Previous article

    invert (objects)

    Back to category

    Transformations

    Next article

    mirror((object1,object2,...),line,(newobject1,newobject2))