Hilo3d API - v2.0.0
Home
Examples
Repository
Preparing search index...
Hilo3d
Sphere
Class Sphere
Index
Constructors
constructor
Properties
center
class
Name
is
Sphere
radius
Methods
clone
copy
from
Geometry
Data
from
Points
transform
Mat4
Constructors
constructor
new
Sphere
(
params
?:
{
center
?:
Vector3
;
radius
?:
number
}
)
:
Sphere
Parameters
params
:
{
center
?:
Vector3
;
radius
?:
number
}
= {}
初始化参数,所有params都会复制到实例上
Returns
Sphere
Properties
center
center
:
Vector3
class
Name
className
:
string
= 'Sphere'
类名
is
Sphere
isSphere
:
boolean
= true
radius
radius
:
number
= 0
半径
Methods
clone
clone
()
:
Sphere
克隆
Returns
Sphere
copy
copy
(
sphere
:
Sphere
)
:
this
复制
Parameters
sphere
:
Sphere
Returns
this
this
from
Geometry
Data
fromGeometryData
(
geometryData
:
GeometryData
)
:
this
从点生成
Parameters
geometryData
:
GeometryData
Returns
this
this
from
Points
fromPoints
(
points
:
ArrayLike
<
number
>
)
:
this
从点生成
Parameters
points
:
ArrayLike
<
number
>
Returns
this
this
transform
Mat4
transformMat4
(
mat4
:
Matrix4
)
:
this
transformMat4
Parameters
mat4
:
Matrix4
Returns
this
this
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
center
class
Name
is
Sphere
radius
Methods
clone
copy
from
Geometry
Data
from
Points
transform
Mat4
Home
Examples
Repository
Hilo3d API - v2.0.0
Loading...
初始化参数,所有params都会复制到实例上