CenterPoint() public method

public CenterPoint ( ) : Point3Dd
return Point3Dd
コード例 #1
0
        // どこからも参照されていない

        /*
         * int GetConnectedNodeNum(DendriteNode parent)
         * {
         *  int n = ConnectedNodes.Count(node => node != parent);
         *
         *  return n;
         * }
         */

        public double EuclideanDistanceTo(DendriteNode other)
        {
            return(this.EuclideanDistanceTo(other.CenterPoint()));
        }
コード例 #2
0
ファイル: DendriteNode.cs プロジェクト: Vaa3D/vaa3d_tools
        // どこからも参照されていない
        /*
        int GetConnectedNodeNum(DendriteNode parent)
        {
            int n = ConnectedNodes.Count(node => node != parent);

            return n;
        }
        */

        public double EuclideanDistanceTo(DendriteNode other)
        {
            return this.EuclideanDistanceTo(other.CenterPoint());
        }