ixfx
    Preparing search index...

    Namespace Arcs

    Arcs are a angle-limited circle. Essentially describing a wedge.

    Functions

    angularSize

    Returns the angular size of arc. Eg if arc runs from 45-315deg in clockwise direction, size will be 90deg.

    bbox

    Calculates a Rect bounding box for arc.

    distanceCenter

    Calculates the distance between the centers of two arcs

    fromCircle

    Returns an arc based on a circle using start and end angles. If you don't have the end angle, but rather the size of the arc, use fromCircleAmount

    fromCircleAmount

    Returns an arc based on a circle, a start angle, and the size of the arc. See fromCircle if you already have start and end angles.

    fromDegrees

    Returns an arc from degrees, rather than radians

    getStartEnd

    Return start and end points of arc. origin will override arc's origin, if defined.

    guard

    Throws an error if arc instance is invalid

    isArc

    Returns true if parameter is an arc

    isEqual

    Returns true if the two arcs have the same values

    isPositioned

    Returns true if parameter has a positioned (x,y)

    length

    Calculates the length of the arc

    point

    Calculates a coordinate on an arc, based on an angle. origin will override arc's origin, if defined.

    toLine

    Returns a Line linking the start and end points of an ArcPositioned.

    toPath

    Creates a Path instance from the arc. This wraps up some functions for convienence.

    Type Aliases

    Arc

    Arc, defined by radius, start and end point in radians and direction

    ArcInterpolate

    Function which can interpolate along an Arc or ArcPositioned.

    ArcPositioned

    An Arc that also has a center position, given in x, y

    ArcSvgOpts
    ArcToSvg

    Function to convert an arc to SVG segments

    Variables

    interpolate

    Compute relative position on arc.

    toSvg

    Creates an SV path snippet for arc