My friend received this as a technical test to be developed as a C# Web API endpoint with an optional JavaScript front end and I fancied having a crack.
This is my first dive into C# and the .NET environment.
- C#
- .NET Core 2.2
- NuGet
- Node & NPM
- Laravel Mix
- Vue
- SCSS
- XUnit
- Moq
1.A - The task, calculate the triangle coordinates for an image with right triangles such that for a given row (A-F) and column (1-12) you can produce any of the triangles in the layout below:
Each non-hypotenuse side of the triangle is as follows:
1.B - Lastly, given the vertex coordinates, calculate the row and column for the triangle: