public GridPositionModel GetGridPosition(int v1X, int v1Y, int v2X, int v2Y, int v3X, int v3Y) { TrigonometryCalculator calc = new TrigonometryCalculator(); GridPositionModel model = new GridPositionModel(calc.GetGridPosition(new TriangleCoordinates(v1X, v1Y, v2X, v2Y, v3X, v3Y))); return(model); }
public TriangleCoordinates GetCoordinates(string row, int column) { TrigonometryCalculator calc = new TrigonometryCalculator(); GridPosition position = new GridPosition(row, column); return(calc.GetCoordinates(position)); }
public void Setup() { _calc = new TrigonometryCalculator(); }