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

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

Allow selection of pipe elements only. Return the normalised direction of the given pipe.
private GetPipeDirection ( Pipe pipe ) : XYZ
pipe Pipe
Результат XYZ
        XYZ GetPipeDirection( Pipe pipe )
        {
            Curve c = pipe.GetCurve();
              XYZ dir = c.GetEndPoint( 1 ) - c.GetEndPoint( 1 );
              dir = dir.Normalize();
              return dir;
        }