Represent a circular arc.

Hierarchy (View Summary)

Constructors

Properties

_boundingBoxNeedsUpdate: boolean
arcLengthDivisions: number

Accessors

  • get boundingBoxNeedUpdate(): boolean
  • When this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.

    Returns boolean

  • get box(): AcGeBox2d
  • The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding box of one shape, the bounding box value is cached. It will be calculated again lazily once there are any changes to properties of this shape.

    Returns AcGeBox2d

  • get center(): AcGePoint2d
  • Center of circular arc

    Returns AcGePoint2d

  • set center(value: AcGeVector2dLike): void
  • Parameters

    Returns void

  • get clockwise(): boolean
  • Rotation direction of the arc.

    Returns boolean

  • set clockwise(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

  • get closed(): boolean
  • Return true if its start point is identical to its end point. Otherwise, return false.

    Returns boolean

  • get deltaAngle(): number
  • Angle between endAngle and startAngle in range 0 to 2*PI

    Returns number

  • get endAngle(): number
  • End angle in radians of circular arc in the range 0 to 2 * PI.

    Returns number

  • set endAngle(value: number): void
  • Parameters

    • value: number

    Returns void

  • get endPoint(): AcGePoint2d
  • End point of circular arc

    Returns AcGePoint2d

  • get length(): number
  • Get length of circular arc

    Returns number

  • get midPoint(): AcGePoint2d
  • Middle point of circular arc

    Returns AcGePoint2d

  • get radius(): number
  • Radius of circular arc

    Returns number

  • set radius(value: number): void
  • Parameters

    • value: number

    Returns void

  • get startAngle(): number
  • Start angle in radians of circular arc in the range 0 to 2 * PI.

    Returns number

  • set startAngle(value: number): void
  • Parameters

    • value: number

    Returns void

  • get startPoint(): AcGePoint2d
  • Start point of circular arc

    Returns AcGePoint2d

Methods

  • Get total curve arc length.

    Returns number

    Return total curve arc length.

  • Get list of cumulative segment lengths.

    Parameters

    • Optionaldivisions: number

      Input number of pieces to divide the curve into.

    Returns number[]

    Return list of cumulative segment lengths.

  • Return the point for a given position on the curve according to the arc length.

    Parameters

    • _t: number

    Returns AcGePoint2d

    Return the point for a given position on the curve according to the arc length.

  • Return a point for a given position on the curve according to the arc length.

    Parameters

    • u: number

      Input a position on the curve according to the arc length. Must be in the range [0, 1].

    Returns AcGePoint2d

    Return a point for a given position on the curve according to the arc length.

  • Calculate a point on the ellipse at a given angle.

    Parameters

    • angle: number

      Input the angle in radians where the point is to be calculated.

    Returns AcGePoint2d

    Return the 2d coordinates of the point on the circular arc.

  • Divide this arc into the specified nubmer of points and return those points as an array of points.

    Parameters

    • OptionalnumPoints: number

      Input the nubmer of points returned

    Returns AcGePoint2d[]

    Return an array of points

  • Return a set of divisions + 1 equi-spaced points using getPointAt(u).

    Parameters

    • Optionaldivisions: number

      Input number of pieces to divide the curve into. Default is 5.

    Returns AcGePoint2d[]

    Return a set of divisions + 1 equi-spaced points using getPointAt(u).

  • Return a unit vector tangent at t. If the derived curve does not implement its tangent derivation, two points a small delta apart will be used to find its gradient which seems to give a reasonable approximation.

    Parameters

    • t: number

      Input a position on the curve. Must be in the range [ 0, 1 ].

    Returns AcGePoint2d

    Return a unit vector tangent at t.

  • Return tangent at a point which is equidistant to the ends of the curve from the point given in getTangent.

    Parameters

    • u: number

      Input a position on the curve according to the arc length. Must be in the range [0, 1].

    Returns AcGePoint2d

    Return tangent at a point which is equidistant to the ends of the curve from the point given in getTangent.

  • Given u in the range (0 .. 1), returns t also in the range ( 0 .. 1 ). u and t can then be used to give you points which are equidistant from the ends of the curve, using getPoint.

    Parameters

    • u: number
    • Optionaldistance: number

    Returns number

  • Transforms the entity by applying the input matrix.

    Parameters

    Returns this