public void AddPoint(Vector3 point) { TickInterpolator.Segment segment = new TickInterpolator.Segment(this.EndPoint, point); this.points.Add(segment); this.Length += segment.length; this.EndPoint = segment.point; }
public void TransformEntries(Matrix4x4 matrix) { for (int index = 0; index < this.points.Count; ++index) { TickInterpolator.Segment point = this.points[index]; point.point = ((Matrix4x4) ref matrix).MultiplyPoint3x4(point.point); this.points[index] = point; } this.CurrentPoint = ((Matrix4x4) ref matrix).MultiplyPoint3x4(this.CurrentPoint); this.StartPoint = ((Matrix4x4) ref matrix).MultiplyPoint3x4(this.StartPoint); this.EndPoint = ((Matrix4x4) ref matrix).MultiplyPoint3x4(this.EndPoint); }
public bool MoveNext(float distance) { float num; for (num = 0.0f; (double)num < (double)distance && this.index < this.points.Count; ++this.index) { TickInterpolator.Segment point = this.points[this.index]; this.CurrentPoint = point.point; num += point.length; } return((double)num > 0.0); }
public void TransformEntries(Matrix4x4 matrix) { for (int i = 0; i < this.points.Count; i++) { TickInterpolator.Segment item = this.points[i]; item.point = matrix.MultiplyPoint3x4(item.point); this.points[i] = item; } this.CurrentPoint = matrix.MultiplyPoint3x4(this.CurrentPoint); this.StartPoint = matrix.MultiplyPoint3x4(this.StartPoint); this.EndPoint = matrix.MultiplyPoint3x4(this.EndPoint); }
public bool MoveNext(float distance) { float single = 0f; while (single < distance && this.index < this.points.Count) { TickInterpolator.Segment item = this.points[this.index]; this.CurrentPoint = item.point; single += item.length; this.index++; } return(single > 0f); }