* @zh 计算三角形面积的两倍(用于判断点的相对位置) * @en Calculate twice the triangle area (for point relative position)
(a: IPoint, b: IPoint, c: IPoint)
| 558 | * @en Calculate twice the triangle area (for point relative position) |
| 559 | */ |
| 560 | private triArea2(a: IPoint, b: IPoint, c: IPoint): number { |
| 561 | return (c.x - a.x) * (b.y - a.y) - (b.x - a.x) * (c.y - a.y); |
| 562 | } |
| 563 | |
| 564 | /** |
| 565 | * @zh 计算路径总长度 |