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)); }
public Line Transform(IVector2Transformer transformer) { if (transformer == null) { throw new ArgumentNullException("transformer"); } return(new Line(transformer.TransformPoint(P0), transformer.TransformPoint(P1))); }
public LineSegment Transform(IVector2Transformer transformer) { return(new LineSegment(transformer.TransformPoint(P0), transformer.TransformPoint(P1))); }
public Circle Transform(IVector2Transformer transform) { return(new Circle(r, transform.TransformPoint(center))); }
public LineSegment Transform(IVector2Transformer transformer) { return new LineSegment(transformer.TransformPoint(P0), transformer.TransformPoint(P1)); }