Ejemplo n.º 1
0
        public CircleSegment Transform(IVector2Transformer transform)
        {
            Vector2 newCenter     = transform.TransformPoint(center);
            Vector2 newStartPoint = transform.TransformPoint(center + Vector2.FromAngle(startAngle) * r);
            Vector2 newEndPoint   = transform.TransformPoint(center + Vector2.FromAngle(endAngle) * r);

            return(new CircleSegment(r, newCenter, newStartPoint, newEndPoint, ccw));
        }
Ejemplo n.º 2
0
        public Line Transform(IVector2Transformer transformer)
        {
            if (transformer == null)
            {
                throw new ArgumentNullException("transformer");
            }

            return(new Line(transformer.TransformPoint(P0), transformer.TransformPoint(P1)));
        }
Ejemplo n.º 3
0
        public LineList Transform(IVector2Transformer transformer)
        {
            LineList ret = new LineList();

            ret.Capacity = this.Count;

            ret.AddRange(transformer.TransformPoints(this));

            return(ret);
        }
Ejemplo n.º 4
0
 public LineSegment Transform(IVector2Transformer transformer)
 {
     return(new LineSegment(transformer.TransformPoint(P0), transformer.TransformPoint(P1)));
 }
Ejemplo n.º 5
0
 public Circle Transform(IVector2Transformer transform)
 {
     return(new Circle(r, transform.TransformPoint(center)));
 }
Ejemplo n.º 6
0
 public new LinePath Transform(IVector2Transformer transformer)
 {
     return(new LinePath(transformer.TransformPoints(this)));
 }
Ejemplo n.º 7
0
 public void TransformInPlace(IVector2Transformer transformer)
 {
     transformer.TransformPointsInPlace(this);
 }
Ejemplo n.º 8
0
 public Polygon Transform(IVector2Transformer transformer)
 {
     return(new Polygon(transformer.TransformPoints(this), coordMode));
 }
Ejemplo n.º 9
0
 public LineSegment Transform(IVector2Transformer transformer)
 {
     return new LineSegment(transformer.TransformPoint(P0), transformer.TransformPoint(P1));
 }