跳到主要内容

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);
参数类型说明
pt1GPathPoint
pt2GPathPoint

源码:Tween/GPath.cs (行 144)

Create(GPathPoint, GPathPoint, GPathPoint)​

public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3);
参数类型说明
pt1GPathPoint
pt2GPathPoint
pt3GPathPoint

源码:Tween/GPath.cs (行 158)

Create(GPathPoint, GPathPoint, GPathPoint, GPathPoint)​

public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3, GPathPoint pt4);
参数类型说明
pt1GPathPoint
pt2GPathPoint
pt3GPathPoint
pt4GPathPoint

源码:Tween/GPath.cs (行 174)

Create(IEnumerable<GPathPoint>)​

public void Create(IEnumerable<GPathPoint> points);
参数类型说明
pointsIEnumerable<GPathPoint>

源码:Tween/GPath.cs (行 188)

GetAllPoints(List<Vector3>, float)​

public void GetAllPoints(List<Vector3> points, float pointDensity = 0.1f);
参数类型说明
pointsList<Vector3>
pointDensityfloat

源码:Tween/GPath.cs (行 417)

GetPointAt(float)​

public Vector3 GetPointAt(float t);
参数类型说明
tfloat

源码: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);
参数类型说明
segmentIndexint
t0float
t1float
pointsList<Vector3>
tsList<float>
pointDensityfloat

源码:Tween/GPath.cs (行 363)

GetSegmentLength(int)​

public float GetSegmentLength(int segmentIndex);
参数类型说明
segmentIndexint

源码:Tween/GPath.cs (行 350)

属性​

length​

public float length { get; }

源码:Tween/GPath.cs (行 134)

segmentCount​

public int segmentCount { get; }

源码:Tween/GPath.cs (行 340)