Table of Contents

Class Vertex

Namespace
LiveScope.STL
Assembly
LiveScope.Net.dll

A simple XYZ representation of a vertex.

public class Vertex : IEquatable<Vertex>
Inheritance
Vertex
Implements
Derived
Inherited Members

Constructors

Vertex()

Creates a new, empty Vertex.

public Vertex()

Vertex(float, float, float)

Creates a new Vertex using the provided coordinates.

public Vertex(float x, float y, float z)

Parameters

x float

X

y float

Y

z float

Z

Properties

X

The X coordinate of this Vertex.

public float X { get; set; }

Property Value

float

Y

The Y coordinate of this Vertex.

public float Y { get; set; }

Property Value

float

Z

The Z coordinate of this Vertex.

public float Z { get; set; }

Property Value

float

Methods

Equals(Vertex?)

Determines whether or not this instance is the same as the other instance.

public bool Equals(Vertex? other)

Parameters

other Vertex

The Vertex to which to compare.

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Read(BinaryReader)

Reads a single Vertex from the reader.

public static Vertex Read(BinaryReader reader)

Parameters

reader BinaryReader

The reader which contains a Vertex to be read at the current position

Returns

Vertex

Read(StreamReader)

Reads a single Vertex from the reader.

public static Vertex Read(StreamReader reader)

Parameters

reader StreamReader

The reader which contains a Vertex to be read at the current position

Returns

Vertex

Shift(Vertex)

Shifts the shift by the X, Y and Z values in the shift parameter.

public void Shift(Vertex shift)

Parameters

shift Vertex

The amount to shift the vertex.

ToString()

Returns the string representation of this Vertex.

public override string ToString()

Returns

string

Write(BinaryWriter)

Writes the Vertex as binary to the writer.

public void Write(BinaryWriter writer)

Parameters

writer BinaryWriter

The writer to which the Vertex will be written at the current position.

Write(StreamWriter)

Writes the Vertex as text to the writer.

public void Write(StreamWriter writer)

Parameters

writer StreamWriter

The writer to which the Vertex will be written at the current position.