Home > @esengine/ecs-framework-monorepo > Circle > fromThreePoints
Circle.fromThreePoints() method
从三个点创建外接圆
Signature:
typescript
static fromThreePoints(p1: Vector2, p2: Vector2, p3: Vector2): Circle | null;
Parameters
Parameter | Type | Description |
---|---|---|
p1 | 第一个点 | |
p2 | 第二个点 | |
p3 | 第三个点 |
Returns:
Circle | null
外接圆,如果三点共线返回null