GPath
命名空间:FairyGUI
源码:Assets/Scripts/Tween/GPath.cs (行 108)
public class GPath
构造函数
GPath()
public GPath();
源码:Tween/GPath.cs (行 125)
字段
_fullLength
protected float _fullLength;
源码:Tween/GPath.cs (行 120)
_points
protected List<Vector3> _points;
源码:Tween/GPath.cs (行 119)
_segments
protected List<Segment> _segments;
源码:Tween/GPath.cs (行 118)
方法
Clear()
public void Clear();
源码:Tween/GPath.cs (行 281)
Create(GPathPoint, GPathPoint)
public void Create(GPathPoint pt1, GPathPoint pt2);
| 参数 | 类型 | 说明 |
|---|---|---|
pt1 | GPathPoint | |
pt2 | GPathPoint |
源码:Tween/GPath.cs (行 144)
Create(GPathPoint, GPathPoint, GPathPoint)
public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3);
| 参数 | 类型 | 说明 |
|---|---|---|
pt1 | GPathPoint | |
pt2 | GPathPoint | |
pt3 | GPathPoint |
源码:Tween/GPath.cs (行 158)
Create(GPathPoint, GPathPoint, GPathPoint, GPathPoint)
public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3, GPathPoint pt4);
| 参数 | 类型 | 说明 |
|---|---|---|
pt1 | GPathPoint | |
pt2 | GPathPoint | |
pt3 | GPathPoint | |
pt4 | GPathPoint |
源码:Tween/GPath.cs (行 174)
Create(IEnumerable<GPathPoint>)
public void Create(IEnumerable<GPathPoint> points);
| 参数 | 类型 | 说明 |
|---|---|---|
points | IEnumerable<GPathPoint> |
源码:Tween/GPath.cs (行 188)
GetAllPoints(List<Vector3>, float)
public void GetAllPoints(List<Vector3> points, float pointDensity = 0.1f);
| 参数 | 类型 | 说明 |
|---|---|---|
points | List<Vector3> | |
pointDensity | float |
源码:Tween/GPath.cs (行 417)
GetPointAt(float)
public Vector3 GetPointAt(float t);
| 参数 | 类型 | 说明 |
|---|---|---|
t | float |
源码:Tween/GPath.cs (行 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);
| 参数 | 类型 | 说明 |
|---|---|---|
segmentIndex | int | |
t0 | float | |
t1 | float | |
points | List<Vector3> | |
ts | List<float> | |
pointDensity | float |
源码:Tween/GPath.cs (行 363)
GetSegmentLength(int)
public float GetSegmentLength(int segmentIndex);
| 参数 | 类型 | 说明 |
|---|---|---|
segmentIndex | int |
源码:Tween/GPath.cs (行 350)
属性
length
public float length { get; }
源码:Tween/GPath.cs (行 134)
segmentCount
public int segmentCount { get; }
源码:Tween/GPath.cs (行 340)