geomUtils.Aabb
Class
Module: cc
Parent 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
halfExtents
_type
Methods
create
create a new aabb
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
Parameters
copy
copy the values from one aabb to another
Parameters
fromPoints
create a new aabb from two corner points
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
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
Parameters
Transform this shape
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