cc.geomUtils 模块
Some helpful utilities
索引
方法
point_plane计算点和平面之间的距离。pt_point_plane计算平面上最接近给定点的点。pt_point_aabb计算 aabb 上最接近给定点的点。pt_point_obb计算 obb 上最接近给定点的点。
Details
方法
point_plane
计算点和平面之间的距离。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/core/geom-utils/distance.ts:47 |
参数列表
pointVec3planePlane
pt_point_plane
计算平面上最接近给定点的点。
| meta | description |
|---|---|
| 返回 | Vec3 |
| 定义于 | cocos2d/core/geom-utils/distance.ts:61 |
参数列表
pt_point_aabb
计算 aabb 上最接近给定点的点。
| meta | description |
|---|---|
| 返回 | Vec3 |
| 定义于 | cocos2d/core/geom-utils/distance.ts:77 |
参数列表
pt_point_obb
计算 obb 上最接近给定点的点。
| meta | description |
|---|---|
| 返回 | Vec3 |
| 定义于 | cocos2d/core/geom-utils/distance.ts:103 |