public AxesGraph(ViewArgs args) { xAxisLine = new HorizontalLine(); yAxisLine = new VerticalLine(); xAxisStrokes = new List <VerticalLineText>(); yAxisStrokes = new List <HorizontalLineText>(); SetAxesLines(args); SetXAxisStrokes(args); SetYAxisStrokes(args); color = Color.FromArgb(255, 0, 0, 0); }
private bool IsInView(VerticalLine vl, Vector2 actualSize) { return(!(vl.Point1.X + thickness / 2 < 0 || vl.Point1.X - thickness / 2 > actualSize.X)); }