mirror of https://github.com/CGAL/cgal
The formula of weights is "- tan(theta / 2) / length", with:
tan ( theta / 2 ) = sin ( theta ) / ( 1 + cos ( theta ) )
= ( 2 * A / |v1| * |v2| ) / ( 1 + v1 . v2 / |v1| * |v2| )
= 2 * A / ( |v1| * |v2| + v1 . v2 )
with A the _unsigned_ area.
|
||
|---|---|---|
| .. | ||
| Weights | ||
| Weights.h | ||