Settings

Choose language

cross(object,object,newobject1,newobject2,newobject3,newobject4)

cross
Draws a point in the place where two objects intercross. If objects intercross twice, only the first point of intersection is returned. Can be applied to lines, arcs, circles, curves and paths. If used in if operator, will return true/false.



Function parameters


  • first object
  • second object
  • (optional) first half of first object (from the first point of the first object to the new point)
  • (optional) second half of first object (from new point to the last point of the first object)
  • (optional) first half of second object (from the first point of the second object to the new point)
  • (optional) second half of second object (from new point to the last point of the second object)

    Usage


    It is mandatory to name the new point that will be placed where the objects intercross. If the names of the four new objects are omitted, the software will only place a point, and not create new objects.

    p1=cross(curve1,curve2) // new objects are not named
    p1=cross(curve1,curve2,curve11,curve12,curve21,curve22) // 4 new objects created

  • Previous article

    split (object,length,newobject1,newobject2)

    Next article

    tangent (object, point, parameter, newobject1, newobject2)