Next: , Previous: CADAlignToGrid, Up: CAD areas and methods


6.27 CADArcAndArc

CADArcAndArc calculates the crossing points of two arcs, where both arcs can be either a Circle, a Circle arc, an Ellipse or an Ellipse arc.

IO Parameter Type Description
in theArc1CenterX real X-coordinate of the center of the first arc
in theArc1CenterY real Y-coordinate of the center of the first arc
in theArc1RadiusX real Radius of the first Circle or Circle arc, x-radius of the first Ellipse or Ellipse arc
in theArc1RadiusY real Radius of the first Circle or Circle arc, y-radius of the first Ellipse or Ellipse arc
in theArc1Rotation real Rotation Angle of the first arc
in theOptionalArc1StartAngle real Start angle of the first Circle arc or Ellipse arc, 0 for the first Circle or Ellipse
in theOptionalArc1EndAngle real End angle of the first Circle arc or Ellipse arc, 0 for the first Circle or Ellipse
in theArc2CenterX real X-coordinate of the center of the second arc
in theArc2CenterY real Y-coordinate of the center of the second arc
in theArc2RadiusX real Radius of the second Circle or Circle arc, x-radius of the second Ellipse or Ellipse arc
in theArc2RadiusY real Radius of the second Circle or Circle arc, y-radius of the second Ellipse or Ellipse arc
in theArc2Rotation real Rotation Angle of the second arc
in theOptionalArc2StartAngle real Start angle of the second Circle arc or Ellipse arc, 0 for the second Circle or Ellipse
in theOptionalArc2EndAngle real End angle of the second Circle arc or Ellipse arc, 0 for the second Circle or Ellipse
out theIntersectCount integer The number of crossing points found (or 0)
out theIntersectX1 real X-coordinate of the first crossing point (or 0)
out theIntersectY1 real Y-coordinate of the first crossing point (or 0)
out theIntersectX2 real X-coordinate of the second crossing point (or 0)
out theIntersectY2 real Y-coordinate of the second crossing point (or 0)
out theIntersectX3 real X-coordinate of the third crossing point (or 0)
out theIntersectY3 real Y-coordinate of the third crossing point (or 0)
out theIntersectX4 real X-coordinate of the fourth crossing point (or 0)
out theIntersectY4 real Y-coordinate of the fourth crossing point (or 0)
out function result OSErr Error result code, also see Error handling

Important
It is an error if any radius is less than or equal to 0.
It is not an error if no crossing points are found.

Related methods
CADLineAndLine, CADLineAndRect, CADRectAndRect, CADLineAndArc, CADPolyAndPoly, CADCheckPoly, CADFindCrossings.