BuildingCoder.CmdNewCrossFitting.IsPipeParallel C# (CSharp) Метод

IsPipeParallel() приватный Метод

Are the two given pipes parallel?
private IsPipeParallel ( Pipe p1, Pipe p2 ) : bool
p1 Pipe
p2 Pipe
Результат bool
        bool IsPipeParallel( Pipe p1, Pipe p2 )
        {
            Line c1 = p1.GetCurve() as Line;
              Line c2 = p2.GetCurve() as Line;
              return Math.Sin( c1.Direction.AngleTo(
            c2.Direction ) ) < 0.01;
        }