Struct Triangle
Represents the dimension of a triangle.
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public struct Triangle
Constructors
| Improve this Doc View SourceTriangle(Point, Point, Point)
Initializes a new Triangle using the given Points.
Declaration
public Triangle(Point a, Point b, Point c)
Parameters
Type | Name | Description |
---|---|---|
Point | a | The lower-left Point of this Triangle. |
Point | b | The lower-right Point of this Triangle. |
Point | c | The upper-center Point of this Triangle. |
Triangle(Int32, Int32, Int32, Int32, Int32, Int32)
Initializes a new Triangle using the given Points.
Declaration
public Triangle(int a_x, int a_y, int b_x, int b_y, int c_x, int c_y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | a_x | The x-coordinate of the lower-left Point of this Triangle. |
Int32 | a_y | The y-coordinate of the lower-left Point of this Triangle. |
Int32 | b_x | The x-coordinate of the lower-right Point of this Triangle. |
Int32 | b_y | The y-coordinate lower-right Point of this Triangle. |
Int32 | c_x | The x-coordinate of the upper-center Point of this Triangle. |
Int32 | c_y | The y-coordinate upper-center Point of this Triangle. |
Triangle(Single, Single, Single, Single, Single, Single)
Initializes a new Triangle using the given Points.
Declaration
public Triangle(float a_x, float a_y, float b_x, float b_y, float c_x, float c_y)
Parameters
Type | Name | Description |
---|---|---|
Single | a_x | The x-coordinate of the lower-left Point of this Triangle. |
Single | a_y | The y-coordinate of the lower-left Point of this Triangle. |
Single | b_x | The x-coordinate of the lower-right Point of this Triangle. |
Single | b_y | The y-coordinate lower-right Point of this Triangle. |
Single | c_x | The x-coordinate of the upper-center Point of this Triangle. |
Single | c_y | The y-coordinate upper-center Point of this Triangle. |
Fields
| Improve this Doc View SourceA
The lower-left Point of this Triangle.
Declaration
public Point A
Field Value
Type | Description |
---|---|
Point |
B
The lower-right Point of this Triangle.
Declaration
public Point B
Field Value
Type | Description |
---|---|
Point |
C
The upper-center Point of this Triangle.
Declaration
public Point C
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 this Triangle structure to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The string representation of this Triangle. |
Overrides
Operators
| Improve this Doc View SourceEquality(Triangle, Triangle)
Determines whether two specified instances are equal.
Declaration
public static bool operator ==(Triangle left, Triangle right)
Parameters
Type | Name | Description |
---|---|---|
Triangle | left | The first object to compare. |
Triangle | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Inequality(Triangle, Triangle)
Determines whether two specified instances are not equal.
Declaration
public static bool operator !=(Triangle left, Triangle right)
Parameters
Type | Name | Description |
---|---|---|
Triangle | left | The first object to compare. |
Triangle | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |