GPath
Namespace:FairyGUI
Source:Assets/Scripts/Tween/GPath.cs (line 108)
public class GPath
Constructors
GPath()
public GPath();
Source:Tween/GPath.cs (line 125)
Fields
_fullLength
protected float _fullLength;
Source:Tween/GPath.cs (line 120)
_points
protected List<Vector3> _points;
Source:Tween/GPath.cs (line 119)
_segments
protected List<Segment> _segments;
Source:Tween/GPath.cs (line 118)
Methods
Clear()
public void Clear();
Source:Tween/GPath.cs (line 281)
Create(GPathPoint, GPathPoint)
public void Create(GPathPoint pt1, GPathPoint pt2);
| Parameter | Type | Description |
|---|---|---|
pt1 | GPathPoint | |
pt2 | GPathPoint |
Source:Tween/GPath.cs (line 144)
Create(GPathPoint, GPathPoint, GPathPoint)
public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3);
| Parameter | Type | Description |
|---|---|---|
pt1 | GPathPoint | |
pt2 | GPathPoint | |
pt3 | GPathPoint |
Source:Tween/GPath.cs (line 158)
Create(GPathPoint, GPathPoint, GPathPoint, GPathPoint)
public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3, GPathPoint pt4);
| Parameter | Type | Description |
|---|---|---|
pt1 | GPathPoint | |
pt2 | GPathPoint | |
pt3 | GPathPoint | |
pt4 | GPathPoint |
Source:Tween/GPath.cs (line 174)
Create(IEnumerable<GPathPoint>)
public void Create(IEnumerable<GPathPoint> points);
| Parameter | Type | Description |
|---|---|---|
points | IEnumerable<GPathPoint> |
Source:Tween/GPath.cs (line 188)
GetAllPoints(List<Vector3>, float)
public void GetAllPoints(List<Vector3> points, float pointDensity = 0.1f);
| Parameter | Type | Description |
|---|---|---|
points | List<Vector3> | |
pointDensity | float |
Source:Tween/GPath.cs (line 417)
GetPointAt(float)
public Vector3 GetPointAt(float t);
| Parameter | Type | Description |
|---|---|---|
t | float |
Source:Tween/GPath.cs (line 292)
GetPointsInSegment(int, float, float, List<Vector3>, List<float>, float)
public void GetPointsInSegment(int segmentIndex, float t0, float t1, List<Vector3> points, List<float> ts = null, float pointDensity = 0.1f);
| Parameter | Type | Description |
|---|---|---|
segmentIndex | int | |
t0 | float | |
t1 | float | |
points | List<Vector3> | |
ts | List<float> | |
pointDensity | float |
Source:Tween/GPath.cs (line 363)
GetSegmentLength(int)
public float GetSegmentLength(int segmentIndex);
| Parameter | Type | Description |
|---|---|---|
segmentIndex | int |
Source:Tween/GPath.cs (line 350)
Properties
length
public float length { get; }
Source:Tween/GPath.cs (line 134)
segmentCount
public int segmentCount { get; }
Source:Tween/GPath.cs (line 340)