コード例 #1
0
ファイル: Range.cs プロジェクト: JeongPyoHam/Gabang
 public GridRange(Range rows, Range columns)
 {
     Rows = rows;
     Columns = columns;
 }
コード例 #2
0
ファイル: Range.cs プロジェクト: JeongPyoHam/Gabang
 public bool Intersect(Range other)
 {
     return (this._end > other._start) && (this._start < other._end);
 }
コード例 #3
0
ファイル: GridPoints.cs プロジェクト: JeongPyoHam/Gabang
 public double GetWidth(Range range)
 {
     return Size(range, _xPositions);
 }
コード例 #4
0
ファイル: GridPoints.cs プロジェクト: JeongPyoHam/Gabang
 private double Size(Range range, double[] positions)
 {
     return positions[range.Start + range.Count] - positions[range.Start];
 }
コード例 #5
0
ファイル: GridPoints.cs プロジェクト: JeongPyoHam/Gabang
 public double GetHeight(Range range)
 {
     return Size(range, _yPositions);
 }