UNPKG

@three3d/tools

Version:

@three3d/tools 提供了 ThreeJS 常用的工具库

15 lines 652 B
import { GeometricRelationship } from "./type"; import { VectorInstance } from "../vector"; /** * 判别点和线段的位置关系 * @remarks * 有以下几种情况: * - Contain:包含;线段包含点 * - Tangency:相切;点与线段共线,但不在线段上; * - Dissociation:相离:不共线; * @param point * @param lineSegment * @returns */ export declare function discriminateRelationshipOfLineSegment_Point<Vec extends VectorInstance>(lineSegment: [Vec, Vec], point: Vec): GeometricRelationship.Dissociation | GeometricRelationship.Tangency | GeometricRelationship.Contain; //# sourceMappingURL=line-point.d.ts.map