コード例 #1
0
ファイル: HandSession.cs プロジェクト: InfoStrat/MotionFx
 public void AddPoint(Point2D position)
 {
     var coord = new PolarCoord(position);
     AddPoint(coord);
 }
コード例 #2
0
ファイル: HandSession.cs プロジェクト: InfoStrat/MotionFx
 public void RemovePoint(PolarCoord coord)
 {
     if (AngleHistogram[coord.Angle].Contains(coord))
     {
         AngleHistogram[coord.Angle].Remove(coord);
     }
     if (this.PointsPrivate.Contains(coord))
     {
         this.PointsPrivate.Remove(coord);
     }
 }
コード例 #3
0
ファイル: HandSession.cs プロジェクト: InfoStrat/MotionFx
        public void AddPoint(PolarCoord coord)
        {
            coord.CalculateCenter(this.Center, this.Up);
            this.PointsPrivate.Add(coord);
            AngleHistogram[coord.Angle].Add(coord);

            if (coord.Radius < MinRadius)
                MinRadius = coord.Radius;
        }