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;
        }