Ejemplo n.º 1
0
    public double a(dz A_0, bool A_1)
    {
        if (!this.b())
        {
            return(double.MaxValue);
        }
        if (!A_0.b())
        {
            return(double.MaxValue);
        }
        if (A_1)
        {
            double num  = this.f() - A_0.f();
            double num2 = this.g() - A_0.g();
            double num3 = this.h() - A_0.h();
            return(Math.Sqrt(((num * num) + (num2 * num2)) + (num3 * num3)));
        }
        double num4 = this.f() - A_0.f();
        double num5 = this.g() - A_0.g();

        return(Math.Sqrt((num4 * num4) + (num5 * num5)));
    }
Ejemplo n.º 2
0
    public double a(dz A_0)
    {
        if (!this.b())
        {
            return(0.0);
        }
        if (!A_0.b())
        {
            return(0.0);
        }
        double x    = A_0.f() - this.f();
        double y    = A_0.g() - this.g();
        double num3 = -Math.Atan2(y, x);

        return(num3 + 1.5707963267948966);
    }