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
halfExtents
_type
方法
create
create a new 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
clone
clone a new aabb
参数列表
copy
copy the values from one aabb to another
参数列表
fromPoints
create a new aabb from two corner points
参数列表
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
参数列表
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
参数列表
Transform this shape
参数列表
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