@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
27 lines (15 loc) • 1.04 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [discriminateRelationshipOfLineSegment\_LineSegment](./tools.discriminaterelationshipoflinesegment_linesegment.md)
## discriminateRelationshipOfLineSegment\_LineSegment() function
判别线段和线段的位置关系 有以下几种情况: - Contain:包含;其中一个包含在另一个中; - Tangency:相切;两线段共线 且 有部分重合; - Dissociation:相离:没有重合的部分; - Intersect;相交;
**Signature:**
```typescript
export declare function discriminateRelationshipOfLineSegment_LineSegment<Vec extends VectorInstance>(lineSegment1: [Vec, Vec], lineSegment2: [Vec, Vec]): GeometricRelationship;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| lineSegment1 | \[Vec, Vec\] | |
| lineSegment2 | \[Vec, Vec\] | 线段 |
**Returns:**
[GeometricRelationship](./tools.geometricrelationship.md)