makeTriangles

fun makeTriangles(segments: Array<Segment>, userGeometry: UserGeometry): FeatureCollection

Given an array of Segments and some user geometry with the location and Field of View distance it which represent the FoV triangles it will generate a FeatureCollection of triangles.

Return

a Feature Collection containing triangles for the relative directions.

Parameters

segments

An Array of degrees to construct triangles

userGeometry

UserGeometry containing the location and Field of View distance