VertexPosition2 Struct
Namespace: Stride.Graphics
Assembly: Stride.Graphics.dll
Describes a custom vertex format structure that contains position as a Vector2.
public struct VertexPosition2 : IEquatable<VertexPosition2>, IVertex
|
Improve this Doc
View Source
Constructors
VertexPosition2(Vector2)
public VertexPosition2(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
The position of this vertex.
|
|
Improve this Doc
View Source
Fields
Layout
The vertex layout of this struct.
public static readonly VertexDeclaration Layout
Field Value
Position
Field Value
Size
Defines structure byte size.
public static readonly int Size
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Methods
Equals(VertexPosition2)
public bool Equals(VertexPosition2 other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
FlipWinding()
public void FlipWinding()
GetHashCode()
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
GetLayout()
public VertexDeclaration GetLayout()
Returns
ToString()
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
|
Improve this Doc
View Source
Operators
Equality(VertexPosition2, VertexPosition2)
public static bool operator ==(VertexPosition2 left, VertexPosition2 right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(VertexPosition2, VertexPosition2)
public static bool operator !=(VertexPosition2 left, VertexPosition2 right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods