Table of Contents

Struct VertexPosition

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

Describes a custom vertex format structure that contains position.

[DataContract]
public struct VertexPosition : IVertexType
Implements
Inherited Members

Constructors

VertexPosition(Vector3)

Creates an instance of VertexPosition.

public VertexPosition(Vector3 position)

Parameters

position Vector3

Position of the vertex.

Fields

Position

The XYZ vertex position.

[DataMember]
public Vector3 Position

Field Value

Vector3

VertexDeclaration

Vertex declaration, which defines per-vertex data.

public static readonly VertexDeclaration VertexDeclaration

Field Value

VertexDeclaration

Methods

Equals(object)

Compares an object with the vertex.

public override bool Equals(object obj)

Parameters

obj object

The object to compare.

Returns

bool

true if the object is equal to the current vertex; false otherwise.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Retrieves a string representation of this object.

public override string ToString()

Returns

string

String representation of this object.

Operators

operator ==(VertexPosition, VertexPosition)

Returns a value that indicates whether two VertexPosition are equal

public static bool operator ==(VertexPosition left, VertexPosition right)

Parameters

left VertexPosition

The vertex on the left of the equality operator.

right VertexPosition

The vertex on the right of the equality operator.

Returns

bool

true if the vertices are the same; false otherwise.

operator !=(VertexPosition, VertexPosition)

Returns a value that indicates whether two VertexPosition are different

public static bool operator !=(VertexPosition left, VertexPosition right)

Parameters

left VertexPosition

The vertex on the left of the equality operator.

right VertexPosition

The vertex on the right of the equality operator.

Returns

bool

true if the vertices are different; false otherwise.