Exemple #1
0
 private Vector3d CrossLineScr(SegmentItem seg0, SegmentItem seg1)
 {
     return(CadMath.CrossLine2D(
                seg0.ScrSegment.P0.vector,
                seg0.ScrSegment.P1.vector,
                seg1.ScrSegment.P0.vector,
                seg1.ScrSegment.P1.vector));
 }
Exemple #2
0
        public Vector3d DistanceY(Vector3d pixp)
        {
            Vector3d a1 = Pos;
            Vector3d a2 = Pos + DirX;

            Vector3d b1 = pixp;
            Vector3d b2 = pixp + DirY;

            Vector3d c = CadMath.CrossLine2D(a1, a2, b1, b2);

            return(pixp - c);
        }