arc

<script src="./point_src/arc"></script>

There are a few arc tools we want here.

Draw arc:

  • typical:

a.pen.arc(ctx, b, primaryColor, size, 2, 0)

Meta Data
filepath_exists True
path arc
filepath arc.js
clean_files ()

  • ClassDeclaration
    class comments:
    Point as _center_, arc from A, to B, at a distance c.radius
    • constructor

      constructor

      (
      parent
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      fromTo

      (
      fromPoint , toPoint , direction
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      Point as _center_, arc from A, to B, at a distance c.radius
    • method

      sweep

      (
      radSweep , direction
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      Sweep through a rad amount, e.g. PI.
    • method

      to

      (
      other , through
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      stage.fromPoint.arc.to(stage.toPoint, stage.centerPoint)
    • method

      though

      (
      a , centerPoint , b
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      An arc from A to B through _c_, the radius is evaluated
    • method

      radial

      (
      other , radius
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      from _this_ A (typically center), to B `other`, drawing an arc of a given radius.
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ExpressionStatement

    :

    dict_keys(['type', 'expression', 'pos'])
  • FunctionDeclaration
    function

    getArcCenter

    (
    A , B , C
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    getArcCenterThrough

    (
    A , B , C
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    getRadiusPlot

    (
    A , B , radius
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • VariableDeclaration
    const

    penArcPlot

    =
    function ( arcPlot , ctx , color =red , width =2 )
  • VariableDeclaration
    const

    drawArcPlot

    =
    function ( arcPlot , ctx , color =red , width =2 )
  • ClassDeclaration
    class comments:
    • method

      fromTo

      (
      centerPoint , fromPoint , toPoint , direction
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      sweep

      (
      centerPoint , radSweep , direction
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      though

      (
      a , centerPoint , b
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • VariableDeclaration
    const

    getArcPlotAngle

    =
    function ( arcPlot , direction =1 )
    Given an arcplot object return the angle difference between the two arc points. For example if the two items are pointing directly away from each other, the result is 180 (degrees)
  • VariableDeclaration
    const

    arcSweep

    =
    function ( centerPoint , radSweep , direction )
    Draw an arc as a _sweep_, using the center point initial direction and a angle to sweep through. Draw a 1/4 pie arc let arcPlot = arcSweep(centerPoint, Math.PI * .5)
  • VariableDeclaration
    const

    arcFromTo

    =
    function ( centerPoint , fromPoint , toPoint , direction )
    An arc, starting at `fromPoint`, ending at `toPoint`, the origin center, at a distance from the center, equal to the center point radius. let arcPlot = arcFromTo(centerPoint, fromPoint, toPoint) penArcPlot(arcPlot, ctx, 'orange') the _from_ or _to_ point may be at any distance from the center point.
  • FunctionDeclaration
    function

    findThirdPoint

    (
    A , B
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    findRadius

    (
    pointA , pointB , pointC
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    arcPlotTo

    (
    center , start , sweepDegrees
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])