geomUtils.Aabb 类型

模块: cc 父模块: cc

Aabb

索引

属性(properties)
方法
  • 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
类型 Vec3
定义于 cocos2d/core/geom-utils/aabb.ts:124
halfExtents
meta description
类型 Vec3
定义于 cocos2d/core/geom-utils/aabb.ts:128
_type
meta description
类型 number
定义于 cocos2d/core/geom-utils/aabb.ts:132

方法

create

create a new aabb

meta description
返回 geomUtils.Aabb
定义于 cocos2d/core/geom-utils/aabb.ts:52
参数列表
  • 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
返回 geomUtils.Aabb
定义于 cocos2d/core/geom-utils/aabb.ts:67
参数列表
copy

copy the values from one aabb to another

meta description
返回 geomUtils.Aabb
定义于 cocos2d/core/geom-utils/aabb.ts:78
参数列表
fromPoints

create a new aabb from two corner points

meta description
返回 geomUtils.Aabb
定义于 cocos2d/core/geom-utils/aabb.ts:92
参数列表
  • 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
返回 geomUtils.Aabb
定义于 cocos2d/core/geom-utils/aabb.ts:106
参数列表
  • 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
定义于 cocos2d/core/geom-utils/aabb.ts:144
参数列表
transform

Transform this shape

meta description
定义于 cocos2d/core/geom-utils/aabb.ts:155
参数列表
  • 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

条与 "" 相匹配的结果

    没有与 "" 匹配的结果