Last change
on this file since 13599 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
822 bytes
|
Rev | Line | |
---|
[12762] | 1 | using System;
|
---|
| 2 |
|
---|
| 3 | namespace SharpVectors.Dom.Svg
|
---|
| 4 | {
|
---|
| 5 | /// <summary>
|
---|
| 6 | /// Summary description for SvgPathSegLinetoAbs.
|
---|
| 7 | /// </summary>
|
---|
| 8 | public sealed class SvgPathSegArcRel : SvgPathSegArc, ISvgPathSegArcRel
|
---|
| 9 | {
|
---|
| 10 | internal SvgPathSegArcRel(double x, double y, double r1, double r2, double angle,
|
---|
| 11 | bool largeArcFlag, bool sweepFlag)
|
---|
| 12 | : base(SvgPathSegType.ArcRel, x, y, r1, r2, angle, largeArcFlag, sweepFlag)
|
---|
| 13 | {
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | public override SvgPointF AbsXY
|
---|
| 17 | {
|
---|
| 18 | get
|
---|
| 19 | {
|
---|
| 20 | SvgPathSeg prevSeg = PreviousSeg;
|
---|
| 21 | SvgPointF prevPoint;
|
---|
| 22 | if (prevSeg == null)
|
---|
| 23 | prevPoint = new SvgPointF(0, 0);
|
---|
| 24 | else prevPoint =
|
---|
| 25 | prevSeg.AbsXY;
|
---|
| 26 |
|
---|
| 27 | return new SvgPointF(prevPoint.X + X, prevPoint.Y + Y);
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
| 31 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.