Global
Members
CircularIntervalSet
- Version:
- 1.0.1
- Source:
convexHull
- Source:
convexPolygonIncircle
Compute the max sized inlying circle in the given convex (!) polygon - also called the
convex-polygon incircle.
The function will return an object with either: the circle, and the triangle that defines
the three tangent points where the circle touches the polygon.
EPS
For circle-polygon-intersection-count detection we need an epsilon to
eliminate smaller precision errors.
geomutils
- Source:
GirihTile
- Version:
- 2.0.1-alpha
- Source:
GLU
Some GL helper utils.
utils
A utility class used by PlotBoilerplate: creategui.
The PlotBoilerplate will try to use this for the initialization of the input GUI.
Requires the label() polyfill for dat.gui.GUI.
- Version:
- 1.0.1
- Source:
Methods
findCircleIntersections(convexHull, circle) → {Array:.<number:>}
Find all intersecting lines (indices) on the polyon that intersect the circle.
Parameters:
Name | Type | Description |
---|---|---|
convexHull |
Polygon | The polygon to detect the intersections on (here this is the convex hull given). |
circle |
Circle | The circle to detect the intersections with. |
Returns:
The indices of those lines that intersect (or touch) the circle.
getTangentTriangle4(vertA, vertB, vertC, vertD) → {Triangle}
This function computes the three points for the inner maximum circle
lying tangential to the three subsequential lines (given by four points).
Compute the circle from that triangle by using Triangle.getCircumcircle().
Not all three lines should be parallel, otherwise the circle might have infinite radius.
LineA := [vertA, vertB]
LineB := [vertB, vertC]
LineC := [vertC, vertD]
Parameters:
Name | Type | Description |
---|---|---|
vertA |
Vertex | The first point of the three connected lines. |
vertB |
Vertex | The second point of the three connected lines. |
vertC |
Vertex | The third point of the three connected lines. |
vertD |
Vertex | The fourth point of the three connected lines. |
Returns:
The triangle of the circular tangential points with the given lines (3 or 4 of them).
- Type
- Triangle
processTypescript()
This triggers the process.
- Source: