Constructors
Properties
The index of the curve in the path.curves array. Read-only.
- Returns:
- Number
The next curve in the path.curves array. Read-only.
- Returns:
- Curve
The previous curve in the path.curves array. Read-only.
- Returns:
- Curve
Read-only.
- Returns:
- Rectangle
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.
- Returns:
- Point
- Parameters:
- parameter: Number
- Returns:
- Point
- Parameters:
- parameter: Number
- Returns:
- Point
- Parameters:
- point: Point
- precision: Number — optional
- Returns:
- Number
- Parameters:
- length: Number
- Returns:
- Number
- Parameters:
- point: Point
- Returns:
- CurveLocation
- Parameters:
- length: Number
- Returns:
- CurveLocation
- Parameters:
- other: Curve
- Returns:
- Array of CurveLocation
Checks if this curve is linear, meaning it does not define any curve handle.
- Returns:
- Boolean — true if the curve is linear, false otherwise
- Parameters:
- pt: Point
- parameter: Number
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
- Returns:
- Curve