ConvexHull() public static method

public static ConvexHull ( Vector3 points ) : Vector3[]
points Vector3
return Vector3[]
コード例 #1
0
ファイル: GraphUpdateScene.cs プロジェクト: isoundy000/wzry-1
 public void RecalcConvex()
 {
     if (this.convex)
     {
         this.convexPoints = Polygon.ConvexHull(this.points);
     }
     else
     {
         this.convexPoints = null;
     }
 }
コード例 #2
0
 /** Recalculate convex points.
  * Will not do anything if not #convex is enabled
  */
 public void RecalcConvex()
 {
     if (convex)
     {
         convexPoints = Polygon.ConvexHull(points);
     }
     else
     {
         convexPoints = null;
     }
 }
コード例 #3
0
        private void CalculateConvexHull()
        {
            if (points == null)
            {
                _convexPoints = null; return;
            }

            _convexPoints = Polygon.ConvexHull(points);
            for (int i = 0; i < _convexPoints.Length; i++)
            {
                Debug.DrawLine(_convexPoints[i], _convexPoints[(i + 1) % _convexPoints.Length], Color.green);
            }
        }
コード例 #4
0
 private void CalculateConvexHull()
 {
     if (this.points == null)
     {
         this._convexPoints = null;
         return;
     }
     this._convexPoints = Polygon.ConvexHull(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);
     }
 }
コード例 #5
0
 /** Recalculate convex points.
  * Will not do anything if not #convex is enabled
  */
 public void RecalcConvex()
 {
     convexPoints = convex ? Polygon.ConvexHull(points) : null;
 }
コード例 #6
0
 public void RecalcConvex()
 {
     this.convexPoints = ((!this.convex) ? null : Polygon.ConvexHull(this.points));
 }