ITriangulationVertexTrait

Description

[StaticTemplate]
interface Tinman.Terrain.Util.Algorithm.ITriangulationVertexTrait
<T val : IVecOps<T, float64>>

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.

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.