コード例 #1
0
 private void CalculateConvexHull()
 {
     if (this.points == null)
     {
         this._convexPoints = null;
         return;
     }
     this._convexPoints = Polygon.ConvexHullXZ(this.points);
     for (int i = 0; i < this._convexPoints.Length; i++)
     {
         Debug.DrawLine(this._convexPoints[i], this._convexPoints[(i + 1) % this._convexPoints.Length], Color.green);
     }
 }
コード例 #2
0
ファイル: GraphUpdateShape.cs プロジェクト: 0ptaq0/Corba-2D
        private void CalculateConvexHull()
        {
            if (points == null)
            {
                _convexPoints = null; return;
            }

            _convexPoints = Polygon.ConvexHullXZ(points);
            for (int i = 0; i < _convexPoints.Length; i++)
            {
                Debug.DrawLine(_convexPoints[i], _convexPoints[(i + 1) % _convexPoints.Length], Color.green);
            }
        }
コード例 #3
0
 void CalculateConvexHull()
 {
     _convexPoints = points != null?Polygon.ConvexHullXZ(points) : null;
 }
コード例 #4
0
 // Token: 0x0600229E RID: 8862 RVA: 0x001938E4 File Offset: 0x00191AE4
 public void RecalcConvex()
 {
     this.convexPoints = (this.convex ? Polygon.ConvexHullXZ(this.points) : null);
 }
コード例 #5
0
 /// <summary>
 /// Recalculate convex hull.
 /// Will not do anything if <see cref="convex"/> is disabled.
 /// </summary>
 public void RecalcConvex()
 {
     convexPoints = convex ? Polygon.ConvexHullXZ(points) : null;
 }
コード例 #6
0
 public void RecalcConvex()
 {
     this.convexPoints = ((!this.convex) ? null : Polygon.ConvexHullXZ(this.points));
 }
コード例 #7
0
ファイル: Polygon.cs プロジェクト: looki666/Green-Hell
 public static Vector3[] ConvexHull(Vector3[] points)
 {
     return(Polygon.ConvexHullXZ(points));
 }
コード例 #8
0
 private void CalculateConvexHull()
 {
     this._convexPoints = ((this.points == null) ? null : Polygon.ConvexHullXZ(this.points));
 }
コード例 #9
0
 // Token: 0x06002259 RID: 8793 RVA: 0x0018E6D3 File Offset: 0x0018C8D3
 private void CalculateConvexHull()
 {
     this._convexPoints = ((this.points != null) ? Polygon.ConvexHullXZ(this.points) : null);
 }