-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to sending labels instead of indices when using answer options…
…; fully support stake steps
- Loading branch information
1 parent
f8f9808
commit cdb4468
Showing
13 changed files
with
402 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
using System; | ||
namespace SICore; | ||
|
||
namespace SICore | ||
/// <summary> | ||
/// Граница отрезка с указанием расположения отрезка относительно точки | ||
/// </summary> | ||
internal sealed class DirPoint | ||
{ | ||
/// <summary> | ||
/// Граница отрезка с указанием расположения отрезка относительно точки | ||
/// </summary> | ||
internal sealed class DirPoint | ||
public DirPoint(double value, bool direction) | ||
{ | ||
public DirPoint(double value, bool direction) | ||
{ | ||
Direction = direction; | ||
Value = direction ? (int)Math.Ceiling(value / 100) * 100 : (int)Math.Floor(value / 100) * 100; | ||
} | ||
Direction = direction; | ||
Value = direction ? (int)Math.Ceiling(value / 100) * 100 : (int)Math.Floor(value / 100) * 100; | ||
} | ||
|
||
/// <summary> | ||
/// Значение точки | ||
/// </summary> | ||
public int Value { get; } | ||
/// <summary> | ||
/// Значение точки | ||
/// </summary> | ||
public int Value { get; } | ||
|
||
/// <summary> | ||
/// true, если отрезок находится правее точки | ||
/// false, если отрезок находится левее точки | ||
/// </summary> | ||
public bool Direction { get; } | ||
/// <summary> | ||
/// true, если отрезок находится правее точки | ||
/// false, если отрезок находится левее точки | ||
/// </summary> | ||
public bool Direction { get; } | ||
|
||
public new string ToString() => $"{Value} {Direction}"; | ||
} | ||
public new string ToString() => $"{Value} {Direction}"; | ||
} |
Oops, something went wrong.