Skip to content
Snippets Groups Projects
Commit e7352ddd authored by Антон Кудряшов's avatar Антон Кудряшов
Browse files

added coordinate methods for matrix

parent f901b6e6
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,19 @@ namespace WindStressPRM
/// </summary>
/// <typeparam name="T"></typeparam>
public class Matrix<T>
{
{
/// <summary>
/// origin coordinates of matrix. This must be top left corner
/// </summary>
public Coordinate Origin { get; set; }
/// <summary>
/// get coordinate of cell at index
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public Coordinate CoordinateAt(Index index) {
return new Coordinate(Origin.X + index.Row*Size.Width, Origin.Y - index.Col*Size.Height);
}
/// <summary>
/// AffineCoefficients for matrix from raster projection
/// </summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment