src/Azos/Geometry/VectorUtils.cs
/// <summary>
/// Inflates balloon body and target point
/// </summary>
Inflates balloon body and target point
Inflates balloon body and target point
public static void InflateBalloon(ref Rectangle body, ref Point target, int deltaBody, int deltaTarget)
    {
      Point center = new Point(body.Left + body.Width / 2, body.Top + body.Height / 2);
      PolarPoint pp = new PolarPoint(center, target);
      body.Inflate(deltaBody, deltaBody);
      pp.R += deltaTarget;
      target = pp.Point;
      target.Offset(center.X, center.Y);
    }
public static void InflateBalloon ( ref Rectangle body , ref Point target , int deltaBody , int deltaTarget ) { Point center = new Point ( body . Left + body . Width / 2 , body . Top + body . Height / 2 ) ; PolarPoint pp = new PolarPoint ( center , target ) ; body . Inflate ( deltaBody , deltaBody ) ; pp . R += deltaTarget ; target = pp . Point ; target . Offset ( center . X , center . Y ) ; }
Inflates balloon body and target point
Inflates balloon body and target point
Rectangle
ref
Point
ref
deltaBody
int
deltaTarget
int