예제 #1
0
 public Vector2D Round()
 {
     return
         (new Vector2D(
              GeoUtils.Round(_x),
              GeoUtils.Round(_y)));
 }
예제 #2
0
 public Point2D Round()
 {
     return
         (new Point2D(
              GeoUtils.Round(_x),
              GeoUtils.Round(_y)));
 }
예제 #3
0
 public void ToX(XElement xe)
 {
     xe.Add(new XAttribute("Position", Position.ToString()));
     AddAttribute(xe, "Bulge", GeoUtils.Round(Bulge));
     AddAttribute(xe, "StartWidth", GeoUtils.Round(StartWidth));
     AddAttribute(xe, "EndWidth", GeoUtils.Round(EndWidth));
 }
예제 #4
0
 public void ToX(XElement xe)
 {
     xe.Add(new XAttribute("X", GeoUtils.Round(X)));
     xe.Add(new XAttribute("Y", GeoUtils.Round(Y)));
 }
예제 #5
0
 public override string ToString()
 {
     return(string.Format("{0},{1}", GeoUtils.Round(X), GeoUtils.Round(Y)));;
 }