Example #1
0
 private void DrawDebugText(Graphics g, ref PointF textPos)
 {
     DrawText(g, "Ballv4d2 Debug Info: ", ref textPos);
     DrawText(g, "Angle(not rounded, radians): " + angle.ToString(), ref textPos);
     DrawText(g, "Angle(not rounded, degrees): " + GeneralFunctionsv1.RadiansToDegrees(angle).ToString(), ref textPos);
     DrawText(g, "Angle(rounded, degrees): " + (Round(angle * 180 / pi)).ToString(), ref textPos);
 }
Example #2
0
 protected float AngleBetween(PointF fromPoint, PointF toPoint)
 {
     return(GeneralFunctionsv1.AngleBetween(fromPoint, toPoint));
 }
Example #3
0
        } // end of function Difference(float f1, float f2)

        protected float DistanceBetween(PointF p1, PointF p2)
        {
            return(GeneralFunctionsv1.DistanceBetween(p1, p2));
        }
Example #4
0
 protected void DrawText(Graphics g, string msg, Brush b, ref PointF pos)
 {
     GeneralFunctionsv1.DrawText(g, msg, b, ref pos);
 }