Show / Hide Table of Contents

Struct Vertex

Each vertex contains: a handle to assign a abstract reference to it. attribute information, e.g. the position of the vertex.

Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fusee.Jometri
Assembly: Fusee.Jometri.dll
Syntax
public struct Vertex

Constructors

Vertex(Vertex, float3)

Constructor for creating a new Vertex from an old one, changing its coordinate.

Declaration
public Vertex(Vertex vert, float3 newPos)
Parameters
Type Name Description
Vertex vert

The old vertex.

float3 newPos

The new coordinate of the vertex.

Vertex(Int32, float3)

Constructor for creating a new Vertex.

Declaration
public Vertex(int handle, float3 pos)
Parameters
Type Name Description
System.Int32 handle

The reference of the Vertex.

float3 pos

The coordinate of the Vertex.

Fields

Handle

The reference of the Vertex.

Declaration
public readonly int Handle
Field Value
Type Description
System.Int32

VertData

Attribute information.

Declaration
public VertexData VertData
Field Value
Type Description
VertexData

Methods

Equals(Object)

Overwrites "Equals".

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

Object to compare with.

Returns
Type Description
System.Boolean

true, if obj and this instance of the object are of the same type and represent the same value.

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Overwrites GetHashCode.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Handle as code.

Overrides
System.ValueType.GetHashCode()

Operators

Equality(Vertex, Vertex)

Overload for == operator.

Declaration
public static bool operator ==(Vertex first, Vertex second)
Parameters
Type Name Description
Vertex first

First comparison parameter.

Vertex second

Second comparison parameter.

Returns
Type Description
System.Boolean

GreaterThan(Vertex, Vertex)

Overload for "smaller than" operator. Comparison based on the Vertex's handle.

Declaration
public static bool operator>(Vertex first, Vertex second)
Parameters
Type Name Description
Vertex first

First comparison parameter.

Vertex second

Second comparison parameter.

Returns
Type Description
System.Boolean

Inequality(Vertex, Vertex)

Overload for != operator.

Declaration
public static bool operator !=(Vertex first, Vertex second)
Parameters
Type Name Description
Vertex first

First comparison parameter.

Vertex second

Second comparison parameter.

Returns
Type Description
System.Boolean

LessThan(Vertex, Vertex)

Overload for "smaller than" operator. Comparison based on the Vertex's handle.

Declaration
public static bool operator <(Vertex first, Vertex second)
Parameters
Type Name Description
Vertex first

First comparison parameter.

Vertex second

Second comparison parameter.

Returns
Type Description
System.Boolean
Generated by DocFX
GitHub Repo
Back to top