Struct Line
Represent a basic line between to points.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public struct Line
Constructors
Line(Vector2, Vector2, Color, float)
Initializes a new instance of the Line struct.
Declaration
public Line(Vector2 startPoint, Vector2 endPoint, Color color, float depth = 0)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | startPoint | The start point. |
Vector2 | endPoint | The end point. |
Color | color | The color. |
float | depth | The depth of the line. |
Line(Vector3, Vector3, Color)
Initializes a new instance of the Line struct.
Declaration
public Line(Vector3 startPoint, Vector3 endPoint, Color color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | startPoint | The start point. |
Vector3 | endPoint | The end point. |
Color | color | The color. |
Fields
Color
The color.
Declaration
public Color Color
Field Value
Type | Description |
---|---|
Color |
EndPoint
The end point.
Declaration
public Vector3 EndPoint
Field Value
Type | Description |
---|---|
Vector3 |
StartPoint
The start point.
Declaration
public Vector3 StartPoint
Field Value
Type | Description |
---|---|
Vector3 |
Methods
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Operators
operator ==(Line, Line)
Implements the operator ==.
Declaration
public static bool operator ==(Line a, Line b)
Parameters
Type | Name | Description |
---|---|---|
Line | a | First Line. |
Line | b | Second Line. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(Line, Line)
Implements the operator !=.
Declaration
public static bool operator !=(Line a, Line b)
Parameters
Type | Name | Description |
---|---|---|
Line | a | First line. |
Line | b | Second line. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |