triangulation2.minAngleDeg

The smallest interior angle of any triangle, in degrees, the measure triangulate’s minAngleDeg bounds.

Value helperSince 0.4.0

Usage

TypeScript
Triangulation2.minAngleDeg(t: Triangulation2): number

Parameters

  • tTriangulation2

    The triangulation: points, then three point indices per triangle.

    Required

Returns

An angle in [0, 60] degrees; 0 when a triangle is degenerate; NaN when there are no triangles.

Example

TypeScript
const t = { points: [Point2.of(0, 0), Point2.of(1, 0), Point2.of(0, 1)], triangles: new Uint32Array([0, 1, 2]), steinerCount: 0 }
Triangulation2.minAngleDeg(t) // → 45

See also