Struct MeshVertex

Namespace
PageCurl.Core
Assembly
PageCurl.Core.dll

A position, UV and lighting value for one mesh vertex.

public readonly struct MeshVertex : IEquatable<MeshVertex>
Implements
Inherited Members

Constructors

MeshVertex(Vector2, Vector2, float, float)

A position, UV and lighting value for one mesh vertex.

public MeshVertex(Vector2 Position, Vector2 TextureCoordinate, float Shade, float Depth)

Parameters

Position Vector2
TextureCoordinate Vector2
Shade float
Depth float

Properties

Depth

public float Depth { get; init; }

Property Value

float

Position

public Vector2 Position { get; init; }

Property Value

Vector2

Shade

public float Shade { get; init; }

Property Value

float

TextureCoordinate

public Vector2 TextureCoordinate { get; init; }

Property Value

Vector2

Methods

Deconstruct(out Vector2, out Vector2, out float, out float)

public void Deconstruct(out Vector2 Position, out Vector2 TextureCoordinate, out float Shade, out float Depth)

Parameters

Position Vector2
TextureCoordinate Vector2
Shade float
Depth float

Equals(MeshVertex)

public bool Equals(MeshVertex other)

Parameters

other MeshVertex

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MeshVertex, MeshVertex)

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

Parameters

left MeshVertex
right MeshVertex

Returns

bool

operator !=(MeshVertex, MeshVertex)

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

Parameters

left MeshVertex
right MeshVertex

Returns

bool