AddPoint() public method

public AddPoint ( PointF rawPoint ) : void
rawPoint PointF
return void
Beispiel #1
0
        public bool IntersectsWith(LineSegmentF lineSegment)
        {
            var other = new Stroke();

            other.AddPoint(lineSegment.Start);
            other.AddPoint(lineSegment.End);
            return(GetIntersectionWith(other) != null);
        }
Beispiel #2
0
        public Stroke GetSimplifiedStroke(int startIndex, float error, int maxSegments)
        {
            var segs = GetSimplifiedSegments(startIndex, error, maxSegments);
            var ss   = new Stroke(CreatedTime);

            ss.AddPoint(segs [0].StartPoint);
            foreach (var s in segs)
            {
                ss.AddPoint(s.EndPoint);
            }

            return(ss);
        }
Beispiel #3
0
		public Stroke GetSimplifiedStroke (int startIndex, float error, int maxSegments)
		{
			var segs = GetSimplifiedSegments (startIndex, error, maxSegments);
			var ss = new Stroke (CreatedTime);

			ss.AddPoint (segs [0].StartPoint);
			foreach (var s in segs) {
				ss.AddPoint (s.EndPoint);
			}

			return ss;
		}
Beispiel #4
0
		public bool IntersectsWith (LineSegmentF lineSegment)
		{
			var other = new Stroke ();
			other.AddPoint (lineSegment.Start);
			other.AddPoint (lineSegment.End);
			return GetIntersectionWith (other) != null;
		}