An open API service indexing awesome lists of open source software.

https://github.com/vanhakobyan/sinusoidal_implementationwpf_asp.netwebapi

:fax:Sinusoidal:fax: function Implementation in WPF using ASP.NET WEB API 2:fax:
https://github.com/vanhakobyan/sinusoidal_implementationwpf_asp.netwebapi

asp-net asp-net-web-api cosinus sinus wpf wpf-application

Last synced: about 22 hours ago
JSON representation

:fax:Sinusoidal:fax: function Implementation in WPF using ASP.NET WEB API 2:fax:

Awesome Lists containing this project

README

          


Author Tigran Vardanyan

```C#
private Point CorrespondingPoint(Point pt)
{
double xmin = 0;
double xmax = 6.5;
double ymin = -1.1;
double ymax = 1.1;

var result = new Point
{
X = (pt.X - xmin) * canvas.Width / (xmax - xmin),
Y = canvas.Height - (pt.Y - ymin) * canvas.Height / (ymax - ymin)
};
return result;
}
```