Skip to main content

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);
ParameterTypeDescription
pt1GPathPoint
pt2GPathPoint

Source:Tween/GPath.cs (line 144)

Create(GPathPoint, GPathPoint, GPathPoint)​

public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3);
ParameterTypeDescription
pt1GPathPoint
pt2GPathPoint
pt3GPathPoint

Source:Tween/GPath.cs (line 158)

Create(GPathPoint, GPathPoint, GPathPoint, GPathPoint)​

public void Create(GPathPoint pt1, GPathPoint pt2, GPathPoint pt3, GPathPoint pt4);
ParameterTypeDescription
pt1GPathPoint
pt2GPathPoint
pt3GPathPoint
pt4GPathPoint

Source:Tween/GPath.cs (line 174)

Create(IEnumerable<GPathPoint>)​

public void Create(IEnumerable<GPathPoint> points);
ParameterTypeDescription
pointsIEnumerable<GPathPoint>

Source:Tween/GPath.cs (line 188)

GetAllPoints(List<Vector3>, float)​

public void GetAllPoints(List<Vector3> points, float pointDensity = 0.1f);
ParameterTypeDescription
pointsList<Vector3>
pointDensityfloat

Source:Tween/GPath.cs (line 417)

GetPointAt(float)​

public Vector3 GetPointAt(float t);
ParameterTypeDescription
tfloat

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);
ParameterTypeDescription
segmentIndexint
t0float
t1float
pointsList<Vector3>
tsList<float>
pointDensityfloat

Source:Tween/GPath.cs (line 363)

GetSegmentLength(int)​

public float GetSegmentLength(int segmentIndex);
ParameterTypeDescription
segmentIndexint

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)