Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Curve

Represents a bezier curve on the shape boundary / loop.

Index

Constructors

Properties

Methods

Constructors

constructor

  • Primarily for internal use.

    Parameters

    • loop: Loop

      The closed loop of bezier curves representing the shape boundary this curve belongs to.

    • ps: number[][]

      The bezier control points.

    • prev: Curve

      The previous curve (when going in a negative direction around the shape boundary, i.e. clockwise for the outer shape and anti-clockwise for the holes (if any)).

    • next: Curve

      The next curve (when going in a positive direction around the shape boundary, i.e. anti-clockwise for the outer shape and clockwise for the holes (if any)).

    • idx: number

      The curve's ordered index in the loop. This imposes a cycling ordering of the curves in the loop.

    Returns Curve

Properties

idx

idx: number

The curve's ordered index in the loop. This imposes a cycling ordering of the curves in the loop.

loop

loop: Loop

The closed loop of bezier curves representing the shape boundary this curve belongs to.

next

next: Curve

The next curve (when going in a positive direction around the shape boundary, i.e. anti-clockwise for the outer shape and clockwise for the holes (if any)).

prev

prev: Curve

The previous curve (when going in a negative direction around the shape boundary, i.e. clockwise for the outer shape and anti-clockwise for the holes (if any)).

ps

ps: number[][]

The bezier control points.

Methods

Static getCornerAtEnd

  • Returns information about the corner created at the end of this curve (at t === 1) and the start of the next curve (at t === 0).

    Parameters

    Returns Corner

Generated using TypeDoc