cc.geomUtils Module
Some helpful utilities
Index
Methods
point_planethe distance between a point and a planept_point_planethe closest point on plane to a given pointpt_point_aabbthe closest point on aabb to a given pointpt_point_obbthe closest point on obb to a given point
Details
Methods
point_plane
the distance between a point and a plane
| meta | description |
|---|---|
| Returns | Number |
| Defined in | cocos2d/core/geom-utils/distance.ts:47 |
Parameters
pointVec3planePlane
pt_point_plane
the closest point on plane to a given point
| meta | description |
|---|---|
| Returns | Vec3 |
| Defined in | cocos2d/core/geom-utils/distance.ts:61 |
Parameters
pt_point_aabb
the closest point on aabb to a given point
| meta | description |
|---|---|
| Returns | Vec3 |
| Defined in | cocos2d/core/geom-utils/distance.ts:77 |
Parameters
pt_point_obb
the closest point on obb to a given point
| meta | description |
|---|---|
| Returns | Vec3 |
| Defined in | cocos2d/core/geom-utils/distance.ts:103 |