Show / Hide Table of Contents

Class LineHelpers

Provides implementations of various helper functions useful for gathering information from lines.

Inheritance
object
LineHelpers
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: GoRogue
Assembly: GoRogue.dll
Syntax
public static class LineHelpers

Methods

View Source

BottomAt(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
View Source

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
View Source

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
View Source

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
  • View Source
In this article
Back to top Generated by DocFX