Sg 2.9
CurveLocation
Packages RSS
About
News
Gallery
Scripts
Tutorials
Download
Reference
Forum
Users
License
Twitter
Inherited by HitResult

CurveLocation objects describe a location on Curve objects, as defined by the curve parameter, a value between 0 (beginning of the curve) and 1 (end of the curve). If the curve is part of a Path item, its index inside the path.curves list is also provided.

The class is in use in many places, such as path.getLocation(offset), path.getPoint(offset), path.split(location), pathItem.getIntersections(path), etc.

Constructors

    Parameters:
  • path: Path
  • index: Number
  • parameter: Number

Properties

The segment of the curve which is closer to the described location. Read-only.

The curve by which the location is defined. Read-only.

The item this curve belongs to, if any. Read-only.

The index of the curve within the path.curves list, if the curve is part of a Path item. Read-only.

    Returns:
  • Number

The length of the path from its beginning up to the location described by this object. Read-only.

    Returns:
  • Number

The length of the curve from its beginning up to the location described by this object. Read-only.

    Returns:
  • Number

The curve parameter, as used by various bezier curve calculations. It is value between 0 (beginning of the curve) and 1 (end of the curve). Read-only.

    Returns:
  • Number

The point which is defined by the curve and parameter. Read-only.

The tangential vector to the curve at the given location. Read-only.

The normal vector to the curve at the given location. Read-only.

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