SpatialQuadtree_Triangles_Distance

Description

struct Tinman.Terrain.Util.SpatialQuadtree_Triangles_Distance

Default implementation of the ISpatialDistanceTrait trait for indexed 2D triangles.

Public / Constructors

Spatial​Quadtree_​Triangles_​Distance


public constructor SpatialQuadtree_Triangles_Distance → (2)

vertices in : Vec2D [ ]

The vertices.

triangles in : Vec3I [ ]

The triangle indices.

Creates a new instance of SpatialQuadtree_Triangles_Distance.

Public / Methods

Sort


public static method Sort → (2)

vertices ref : Vec3I

The vertex indices.

weights ref : Vec3D

The vertex weights.

Sorts the given vertex weights.