geomUtils.Aabb Class

Module: cc

Aabb

Index

Properties
Methods
  • create create a new aabb
  • clone clone a new aabb
  • copy copy the values from one aabb to another
  • fromPoints create a new aabb from two corner points
  • set Set the components of a aabb to the given values
  • getBoundary Get the bounding points of this shape
  • transform Transform this shape

Details

Properties

center
meta description
Type Vec3
Defined in cocos2d/core/geom-utils/aabb.ts:124
halfExtents
meta description
Type Vec3
Defined in cocos2d/core/geom-utils/aabb.ts:128
_type
meta description
Type number
Defined in cocos2d/core/geom-utils/aabb.ts:132

Methods

create

create a new aabb

meta description
Returns geomUtils.Aabb
Defined in cocos2d/core/geom-utils/aabb.ts:52
Parameters
  • px number X coordinates for aabb's original point
  • py number Y coordinates for aabb's original point
  • pz number Z coordinates for aabb's original point
  • w number the half of aabb width
  • h number the half of aabb height
  • l number the half of aabb length
clone

clone a new aabb

meta description
Returns geomUtils.Aabb
Defined in cocos2d/core/geom-utils/aabb.ts:67
Parameters
copy

copy the values from one aabb to another

meta description
Returns geomUtils.Aabb
Defined in cocos2d/core/geom-utils/aabb.ts:78
Parameters
fromPoints

create a new aabb from two corner points

meta description
Returns geomUtils.Aabb
Defined in cocos2d/core/geom-utils/aabb.ts:92
Parameters
  • out geomUtils.Aabb the receiving aabb
  • minPos Vec3 lower corner position of the aabb
  • maxPos Vec3 upper corner position of the aabb
set

Set the components of a aabb to the given values

meta description
Returns geomUtils.Aabb
Defined in cocos2d/core/geom-utils/aabb.ts:106
Parameters
  • out geomUtils.Aabb the receiving aabb
  • px number X coordinates for aabb's original point
  • py number Y coordinates for aabb's original point
  • pz number Z coordinates for aabb's original point
  • w number the half of aabb width
  • h number the half of aabb height
  • l number the half of aabb length
getBoundary

Get the bounding points of this shape

meta description
Defined in cocos2d/core/geom-utils/aabb.ts:144
Parameters
transform

Transform this shape

meta description
Defined in cocos2d/core/geom-utils/aabb.ts:155
Parameters
  • m Mat4 the transform matrix
  • pos Vec3 the position part of the transform
  • rot Quat the rotation part of the transform
  • scale Vec3 the scale part of the transform
  • out geomUtils.Aabb the target shape

results matching ""

    No results matching ""