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) a in : T The first vector. b in : T The second vector. returns → float64 The resulting dot product value. Computes the dot product of the cross product of a in and b in with the polygon normal. Dot [Pure] public method Dot → (2) a in : T The first vector. b in : T The second vector. returns → float64 The resulting dot product value. Computes the dot product of a in and b in. Length [Pure] public method Length → (1) a in : T The vector. returns → float64 The resulting length value. Computes the length of a in. Norm [Pure] public method Norm → (1) a in : T The vector to normalize. returns → T The normalized vector. Normalizes the given vector. Side [Pure] public method Side → (2) a in : T The vector. p 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 a in with the polygon normal. Sub [Pure] public method Sub → (2) a in : T The first vertex position vector (to be resolved by trait). b in : T The second vertex position vector vertex (to be resolved by trait). returns → T The resulting vector. Subtracts b in from a in. ITriangulationOutputTrait PolygonConcave