Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MES_Wind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debolskiy Andrey
MES_Wind
Commits
e7352ddd
Commit
e7352ddd
authored
8 years ago
by
Антон Кудряшов
Browse files
Options
Downloads
Patches
Plain Diff
added coordinate methods for matrix
parent
f901b6e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
WindStressPRM/Utils/Matrix.cs
+13
-1
13 additions, 1 deletion
WindStressPRM/Utils/Matrix.cs
with
13 additions
and
1 deletion
WindStressPRM/Utils/Matrix.cs
+
13
−
1
View file @
e7352ddd
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment