protected double TransformX(double source) { if (CSTransform == null) { return(0); } return(CSTransform.Transform(new Point(source, 0)).X + AxisShift); }
protected double TransformY(double source) { if (CSTransform == null) { return(0); } return(CSTransform.Transform(new Point(0, source)).Y + AxisShift); }
private void TestDrawALine(DrawingContext drawingContext) { drawingContext.DrawLine(new Pen(new SolidColorBrush(Colors.Red), 1), CSTransform.Transform(new Point(0, 0)), CSTransform.Transform(new Point(80, 50))); }