Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dominic Beger
committed
May 8, 2016
1 parent
b1e9b01
commit 5e7531d
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
} | ||
} |