Sg 2.9
Curve
Packages RSS
About
News
Gallery
Scripts
Tutorials
Download
Reference
Forum
Users
License
Twitter

Constructors

    Parameters:
  • segment1: Segment — optional
  • segment2: Segment — optional

Properties

The index of the curve in the path.curves array. Read-only.

    Returns:
  • Number

The path that the segment belongs to. Read-only.

The first anchor point of the curve.

The second anchor point of the curve.

The handle point that describes the tangent in the first anchor point.

The handle point that describes the tangent in the second anchor point.

The first segment of the curve. Read-only.

The second segment of the curve. Read-only.

The next curve in the path.curves array. Read-only.

The previous curve in the path.curves array. Read-only.

    Returns:
  • Boolean

The approximated length of the curve in points. Read-only.

    Returns:
  • Number

Read-only.

Functions

    Parameters:
  • from: Number
  • to: Number
    Returns:
  • Number

Returns the point on the curve at the specified position.

    Parameters:
  • parameter: Number — the position at which to find the point as a value between 0 and 1.
    Parameters:
  • parameter: Number
    Parameters:
  • parameter: Number
    Parameters:
  • point: Point
  • precision: Number — optional
    Returns:
  • Number
    Parameters:
  • length: Number
    Returns:
  • Number
    Parameters:
  • length: Number

Checks if this curve is linear, meaning it does not define any curve handle.

    Returns:
  • Booleantrue if the curve is linear, false otherwise

Retruns the reversed the curve, without modifying the curve itself.

Divides the curve into two at the specified position. The curve itself is modified and becomes the first part, the second part is returned as a new curve. If the modified curve belongs to a path item, the second part is added to it.

    Parameters:
  • parameter: Number — the position at which to split the curve as a value between 0 and 1 — optional, default: 0.5
    Returns:
  • Curve — the second part of the divided curve

Splits the curve at the given parameter. If this curve is part of a path, it executes path.split(index[, parameter]), otherwise divide([parameter]).

    Parameters:
  • parameter: Number

AltStyle によって変換されたページ (->オリジナル) /