AForge.Math.Geometry.PointsCloud.Shift C# (CSharp) Method

Shift() public static method

Shift cloud by adding specified value to all points in the collection.
public static Shift ( IList cloud, IntPoint shift ) : void
cloud IList Collection of points to shift their coordinates.
shift IntPoint Point to shift by.
return void
        public static void Shift( IList<IntPoint> cloud, IntPoint shift )
        {
            for ( int i = 0, n = cloud.Count; i < n; i++ )
            {
                cloud[i] = cloud[i] + shift;
            }
        }