ITriangulationVertexTrait

Description

[StaticTemplate]
interface Tinman.Terrain.Util.Algorithm.ITriangulationVertexTrait<T val>

A type trait for vertex data during polygon triangulation.

Public / Methods

Cross


[Pure]
public method Cross → (2)

in : T

The first vector.

in : T

The second vector.

returns → float64

The resulting dot product value.

Computes the dot product of the cross product of in and in with the polygon normal.

Dot


[Pure]
public method Dot → (2)

in : T

The first vector.

in : T

The second vector.

returns → float64

The resulting dot product value.

Computes the dot product of in and in.

Length


[Pure]
public method Length → (1)

in : T

The vector.

returns → float64

The resulting length value.

Computes the length of in.

Norm


[Pure]
public method Norm → (1)

in : T

The vector to normalize.

returns → T

The normalized vector.

Normalizes the given vector.

Side


[Pure]
public method Side → (2)

in : T

The vector.

in : bool

true to compute the cross product with the original polygon normal,
false to compute the cross product with the flipped polygon normal.

returns → T

The resulting vector.

Computes the cross product of in with the polygon normal.

Sub


[Pure]
public method Sub → (2)

in : T

The first vertex position vector (to be resolved by trait).

in : T

The second vertex position vector vertex (to be resolved by trait).

returns → T

The resulting vector.

Subtracts in from in.