Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BezierSegment

Describes a bezier segment, using the last point of the previous segment as start point. In case you want to use multiple bezier segments consecutively, consider using the PolyBezierSegment.

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Initializes a new instance of the BezierSegment class.

    Parameters

    • control: Point

      The first control point of the bezier curve.

    • control2: Point

      The second control point of the bezier curve.

    • to: Point

      The end point of the bezier curve.

    Returns BezierSegment

Properties

control

control: Point

Gets or sets the first control point of the bezier curve.

control2

control2: Point

Gets or sets the second control point of the bezier curve.

to

to: Point

Gets or sets the end point of the bezier curve.

Accessors

Private type

  • get type(): "bezier"
  • Returns "bezier"

Methods

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Static create

  • Returns the path segment that is defined by the specified description.

    Parameters

    Returns PathSegment

Static createBezierSegment

  • Returns the bezier segment that is defined by the specified description.

    Parameters

    Returns BezierSegment

Generated using TypeDoc