System.Windows.Forms.MathHelper.DistanceF C# (CSharp) Méthode

DistanceF() public static méthode

public static DistanceF ( float value1, float value2 ) : float
value1 float
value2 float
Résultat float
        public static float DistanceF(float value1, float value2)
        {
            return Math.Abs(value1 - value2);
        }

Same methods

MathHelper::DistanceF ( PointF p1, PointF p2 ) : float
MathHelper::DistanceF ( float x1, float y1, float x2, float y2 ) : float