internal bool HitTest(StrokeNode hitNode) { if (!IsValid || !hitNode.IsValid) { return(false); } IEnumerable <ContourSegment> contourSegments = hitNode.GetContourSegments(); return(_operations.HitTest(_lastNode, _thisNode, ConnectingQuad, contourSegments)); }
internal StrokeFIndices CutTest(StrokeNode hitNode) { if (!IsValid || !hitNode.IsValid) { return(StrokeFIndices.Empty); } IEnumerable <ContourSegment> contourSegments = hitNode.GetContourSegments(); StrokeFIndices strokeFIndices = _operations.CutTest(_lastNode, _thisNode, ConnectingQuad, contourSegments); if (_index != 0) { return(BindFIndices(strokeFIndices)); } return(strokeFIndices); }