cc.geomUtils Module

Some helpful utilities

Index

Methods

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
  • point Vec3
  • plane Plane
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
  • out Vec3 Closest point
  • point Vec3 Given point
  • plane Plane
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
  • out Vec3 Closest point.
  • point Vec3 Given point.
  • aabb Aabb Align the axis around the box.
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
Parameters
  • out Vec3 Closest point
  • point Vec3 Given point
  • obb Obb Direction box

results matching ""

    No results matching ""