AddPoint() public method

public AddPoint ( PointF rawPoint ) : void
rawPoint PointF
return void
Exemplo n.º 1
0
        public bool IntersectsWith(LineSegmentF lineSegment)
        {
            var other = new Stroke();

            other.AddPoint(lineSegment.Start);
            other.AddPoint(lineSegment.End);
            return(GetIntersectionWith(other) != null);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
		}
Exemplo n.º 4
0
		public bool IntersectsWith (LineSegmentF lineSegment)
		{
			var other = new Stroke ();
			other.AddPoint (lineSegment.Start);
			other.AddPoint (lineSegment.End);
			return GetIntersectionWith (other) != null;
		}