Class LineHelpers
Provides implementations of various helper functions useful for gathering information from lines.
Inherited Members
Namespace: GoRogue
Assembly: GoRogue.dll
Syntax
public static class LineHelpers
Methods
View SourceBottomAt(IEnumerable<Point>, int)
Gets the top-most point in a list that is on the given x-value.
Declaration
public static int BottomAt(this IEnumerable<Point> self, int x)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Point> | self | |
int | x | X-value to find the top-most point on. |
Returns
Type | Description |
---|---|
int |
LeftAt(IEnumerable<Point>, int)
Gets the left-most point in a list that is on the given y-value.
Declaration
public static int LeftAt(this IEnumerable<Point> self, int y)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Point> | self | |
int | y | Y-value to find the left-most point on. |
Returns
Type | Description |
---|---|
int |
RightAt(IEnumerable<Point>, int)
Gets the right-most point in a list that is on the given y-value.
Declaration
public static int RightAt(this IEnumerable<Point> self, int y)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Point> | self | |
int | y | Y-value to find the right-most point on. |
Returns
Type | Description |
---|---|
int |
TopAt(IEnumerable<Point>, int)
Gets the top-most point in a list that is on the given x-value.
Declaration
public static int TopAt(this IEnumerable<Point> self, int x)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Point> | self | |
int | x | X-value to find the top-most point on. |
Returns
Type | Description |
---|---|
int |