Struct MeshVertex
A mesh vertex with position and color (spec §8.7.4.5.5). Used by Gouraud-shaded triangle mesh shadings.
Implements
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct MeshVertex : IEquatable<MeshVertex>
Constructors
MeshVertex(double, double, PdfColor)
Initializes a mesh vertex.
Declaration
public MeshVertex(double x, double y, PdfColor color)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y | |
| PdfColor | color |
Properties
Color
Gets the color at this vertex.
Declaration
public PdfColor Color { get; }
Property Value
| Type | Description |
|---|---|
| PdfColor |
X
Gets the X coordinate.
Declaration
public double X { get; }
Property Value
| Type | Description |
|---|---|
| double |
Y
Gets the Y coordinate.
Declaration
public double Y { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Equals(MeshVertex)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(MeshVertex other)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshVertex | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The fully qualified type name. |
Overrides
Operators
operator ==(MeshVertex, MeshVertex)
Equality operator.
Declaration
public static bool operator ==(MeshVertex a, MeshVertex b)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshVertex | a | |
| MeshVertex | b |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(MeshVertex, MeshVertex)
Inequality operator.
Declaration
public static bool operator !=(MeshVertex a, MeshVertex b)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshVertex | a | |
| MeshVertex | b |
Returns
| Type | Description |
|---|---|
| bool |