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); }
protected float AngleBetween(PointF fromPoint, PointF toPoint) { return(GeneralFunctionsv1.AngleBetween(fromPoint, toPoint)); }
} // end of function Difference(float f1, float f2) protected float DistanceBetween(PointF p1, PointF p2) { return(GeneralFunctionsv1.DistanceBetween(p1, p2)); }
protected void DrawText(Graphics g, string msg, Brush b, ref PointF pos) { GeneralFunctionsv1.DrawText(g, msg, b, ref pos); }