UNPKG

@glowjs/core

Version:

GlowJS数字孪生引擎核心库。

9 lines (8 loc) 294 B
import { Line } from '../Line'; import { Point } from '../Point'; /** * 判断点与直线的关系,0=共线,1=右侧,-1=左侧 * @param p 点p * @param line 直线(线段,点的顺序不能互换) */ export declare function relateToPoint(p: Point, line: Line): number;