Struct Line
Represents the start and end Point of a line.
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public struct Line
Constructors
| Improve this Doc View SourceLine(Point, Point)
Initializes a new Line using the given points.
Declaration
public Line(Point start, Point end)
Parameters
Type | Name | Description |
---|---|---|
Point | start | A Point structure including the start coordinates of the line. |
Point | end | A Point structure including the end coordinates of the line. |
Line(Int32, Int32, Int32, Int32)
Initializes a new Line using the given points.
Declaration
public Line(int startX, int startY, int endX, int endY)
Parameters
Type | Name | Description |
---|---|---|
Int32 | startX | The x-coordinate of the start point of the line. |
Int32 | startY | The y-coordinate of the start point of the line. |
Int32 | endX | The x-coordinate of the end point of the line. |
Int32 | endY | The y-coordinate of the end point of the line. |
Line(Single, Single, Single, Single)
Initializes a new Line using the given points.
Declaration
public Line(float startX, float startY, float endX, float endY)
Parameters
Type | Name | Description |
---|---|---|
Single | startX | The x-coordinate of the start point of the line. |
Single | startY | The y-coordinate of the start point of the line. |
Single | endX | The x-coordinate of the end point of the line. |
Single | endY | The y-coordinate of the end point of the line. |
Fields
| Improve this Doc View SourceEnd
The ending Point of this Line.
Declaration
public Point End
Field Value
Type | Description |
---|---|
Point |
Start
The staring Point of this Line.
Declaration
public Point Start
Field Value
Type | Description |
---|---|
Point |
Methods
| Improve this Doc View SourceEquals(Object)
Returns a value indicating whether this instance and a specified Object represent the same type and value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Overrides
| Improve this Doc View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer hash code. |
Overrides
| Improve this Doc View SourceToString()
Converts the Line structure to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this Line. |
Overrides
Operators
| Improve this Doc View SourceEquality(Line, Line)
Determines whether two specified instances are equal.
Declaration
public static bool operator ==(Line left, Line right)
Parameters
Type | Name | Description |
---|---|---|
Line | left | The first object to compare. |
Line | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Inequality(Line, Line)
Determines whether two specified instances are not equal.
Declaration
public static bool operator !=(Line left, Line right)
Parameters
Type | Name | Description |
---|---|---|
Line | left | The first object to compare. |
Line | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |