Exemple #1
0
        // The old oldLineSeg can't be null, the trans can be null.
        public static GeLineSeg GetTransformedLineSeg(GeLineSeg oldLineSeg, Matrix44 trans)
        {
            Debug.Assert(oldLineSeg != null);
            GeLineSeg newLineSeg = null;
            if (oldLineSeg != null && trans != null)
            {
                newLineSeg = new GeLineSeg(
                    trans * oldLineSeg.StartPoint,
                    trans * oldLineSeg.EndPoint);
            }
            else // either of them is null.
                newLineSeg = oldLineSeg;

            return newLineSeg;
        }
Exemple #2
0
        public bool IsOn(GeLineSeg LinSeg)
        {
            if (null == LinSeg) return false;

            Debug.Assert(false, "NO IMPL, Can remove later");
            return LinSeg.Contains(this);
        }