Changeset 563 for trunk/sources
- Timestamp:
- 09/13/08 20:34:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Charting/Primitives/FixedSizeCircle.cs
r2 r563 54 54 Size.Height); 55 55 } 56 57 public override bool ContainsPoint(PointD point) { 58 PointD center = Chart.TransformWorldToPixel(this.Point); 59 PointD x = Chart.TransformWorldToPixel(point); 60 double xDistance = x.X - center.X; 61 double yDistance = x.Y - center.Y; 62 63 return Size.Height*Size.Height/4.0 >= (xDistance * xDistance + yDistance * yDistance); 64 } 56 65 } 57 66 }
Note: See TracChangeset
for help on using the changeset viewer.