Engines/FlatRedBallXNA/FlatRedBall/Math/Geometry/Polygon.cs
/// <summary>
/// Scales all points in the polygon by the argument value. A value of 1 will leave the polygon unchanged.
/// </summary>
/// <param name="amountToScaleBy">The value to scale by. For example, a value of 2 will double the X and Y values of all points.</param>
Scales all points in the polygon by the argument value. A value of 1 will leave the polygon unchanged.
Scales all points in the polygon by the argument value . A value of 1 will leave the polygon unchanged .
public void ScaleBy(double amountToScaleBy)
        {
            for (int i = 0; i < mPoints.Length; i++)
            {
                mPoints[i].X *= amountToScaleBy;
                mPoints[i].Y *= amountToScaleBy;
            }
            CalculateBoundingRadius();
        }
public void ScaleBy ( double amountToScaleBy ) { for ( int i = 0 ; i < mPoints . Length ; i ++ ) { mPoints [ i ] . X *= amountToScaleBy ; mPoints [ i ] . Y *= amountToScaleBy ; } CalculateBoundingRadius ( ) ; }
Scales all points in the polygon by the argument value.
Scales all points in the polygon by the argument value .
amountToScaleBy
double
The value to scale by. For example, a value of 2 will double the X and Y values of all points.
The value to scale by . For example a value of 2 will double the X and Y values of all points .