Skip to content

Commit

Permalink
Add example images for canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Beger committed May 8, 2016
1 parent b1e9b01 commit 5e7531d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Binary file added Canvas2D.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Canvas2DFunctions.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions SharpMath.CanvasTest/Canvas2DTest.cs
@@ -0,0 +1,24 @@
// Author: Dominic Beger (Trade/ProgTrade) 2016

using System;
using System.Windows.Forms;
using SharpMath.Geometry;
using SharpMath.Presentation;

namespace SharpMath.Canvas2DTest
{
public partial class Canvas2DTest : Form
{
public Canvas2DTest()
{
InitializeComponent();
}

private void Canvas2DTest_Load(object sender, EventArgs e)
{
testCanvas.Functions.Add(new FunctionWrapper(x => Math.Pow(x, 3)));
testCanvas.Functions.Add(new FunctionWrapper(x => 1.5 * Math.Sin(x)));
testCanvas.Vertices.Add(new Vector2(4, 8));
}
}
}

0 comments on commit 5e7531d

Please sign in to comment.