public sFixity DuplicatesFixity()
        {
            sFixity newfix = new sFixity();

            newfix.location = this.location.DuplicatesXYZ();
            if (this.release != null)
            {
                newfix.release = this.release.ToArray();
            }
            if (this.partialRelease != null)
            {
                newfix.partialRelease = this.partialRelease.ToArray();
            }
            return(newfix);
        }
예제 #2
0
        public bool AwareFixity(sFixity fix, double tol = 0.005)
        {
            if (fix.location.DistanceTo(this.axis.startPoint) < tol)
            {
                this.fixityAtStart = fix.DuplicatesFixity();
            }

            if (fix.location.DistanceTo(this.axis.endPoint) < tol)
            {
                this.fixityAtEnd = fix.DuplicatesFixity();
            }

            if (this.fixityAtStart != null || this.fixityAtEnd != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }