예제 #1
0
 public FlattenCurves(IVertexSource vertexSource)
 {
     m_curve3     = new Curve3();
     m_curve4     = new Curve4();
     VertexSource = vertexSource;
     lastX        = (0.0);
     lastY        = (0.0);
 }
예제 #2
0
		public FlattenCurves(IVertexSource vertexSource)
		{
			m_curve3 = new Curve3();
			m_curve4 = new Curve4();
			VertexSource = vertexSource;
			lastX = (0.0);
			lastY = (0.0);
		}
예제 #3
0
		public curve3_ctrl_impl()
			: base(new Vector2())
		{
			m_stroke = new Stroke(m_curve);
			m_poly = new polygon_ctrl_impl(3, 5.0);
			m_idx = 0;
			m_curve = new Curve3();
			m_ellipse = new MatterHackers.Agg.VertexSource.Ellipse();

			m_poly.in_polygon_check(false);
			m_poly.SetXN(0, 100.0);
			m_poly.SetYN(0, 0.0);
			m_poly.SetXN(1, 100.0);
			m_poly.SetYN(1, 50.0);
			m_poly.SetXN(2, 50.0);
			m_poly.SetYN(2, 100.0);
		}