Members
Methods
计算多边形
| Name | Type | Description |
|---|---|---|
triPoints |
Vector3[] |
计算两点距离
| Name | Type | Description |
|---|---|---|
x1 |
number | |
y1 |
number | |
z1 |
number | |
x2 |
number | |
y2 |
number | |
z2 |
number |
计算折线间距离
| Name | Type | Description |
|---|---|---|
points1 |
Vector3[] | |
points2 |
Vector3[] |
计算折线间距离,保存最短线段坐标
| Name | Type | Description |
|---|---|---|
points1 |
Vector3[] | |
points2 |
Vector3[] | |
distLinePoints |
RefValue<Array<Vector3>> | RefValue指向结果端点数组 |
计算两点间距离
| Name | Type | Description |
|---|---|---|
pt1 |
Vector3 | |
pt2 |
Vector3 |
计算点到折线距离
| Name | Type | Description |
|---|---|---|
point |
Vector3 | |
points |
Vector3[] |
计算点到折线距离,保存最近点坐标
| Name | Type | Description |
|---|---|---|
point |
Vector3 | |
points |
Vector3[] | |
resultPoint |
Vector3 | 最近点坐标 |
计算折线长度
| Name | Type | Description |
|---|---|---|
points |
Vector3[] |