@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
31 lines (17 loc) • 901 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [discriminateRelationshipOfPoint\_ConvexPolygon](./tools.discriminaterelationshipofpoint_convexpolygon.md)
## discriminateRelationshipOfPoint\_ConvexPolygon() function
判别点和凸多边形的位置关系
**Signature:**
```typescript
export declare function discriminateRelationshipOfPoint_ConvexPolygon(point: Vector2, polygon: Vector2[]): GeometricRelationship.Tangency | GeometricRelationship.Contain;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| point | Vector2 | |
| polygon | Vector2\[\] | 凸多边形 |
**Returns:**
[GeometricRelationship.Tangency](./tools.geometricrelationship.md) \| [GeometricRelationship.Contain](./tools.geometricrelationship.md)
## Remarks
叉乘法