Engines/FlatRedBallXNA/FlatRedBall/Math/Geometry/Polygon.cs
/// <summary>
/// Scales all points in object space.
/// </summary>
/// <param name="scaleX">Amount to scale by on the object's X axis. For example, a value of 2 would double the relative X values of all points.</param>
/// <param name="scaleY">Amount to scale by on the object's Y axis. For example, a value of 2 would double the relative Y values of all points.</param>
Scales all points in object space.
Scales all points in object space .
public void ScaleBy(double scaleX, double scaleY)
        {
            for (int i = 0; i < mPoints.Length; i++)
            {
                mPoints[i].X *= scaleX;
                mPoints[i].Y *= scaleY;
            }
            CalculateBoundingRadius();
        }
public void ScaleBy ( double scaleX , double scaleY ) { for ( int i = 0 ; i < mPoints . Length ; i ++ ) { mPoints [ i ] . X *= scaleX ; mPoints [ i ] . Y *= scaleY ; } CalculateBoundingRadius ( ) ; }
Scales all points in object space.
Scales all points in object space .
scaleX
double
Amount to scale by on the object's X axis. For example, a value of 2 would double the relative X values of all points.
Amount to scale by on the object ' s X axis . For example a value of 2 would double the relative X values of all points .
scaleY
double
Amount to scale by on the object's Y axis. For example, a value of 2 would double the relative Y values of all points.
Amount to scale by on the object ' s Y axis . For example a value of 2 would double the relative Y values of all points .