geomUtils.Triangle
类型
模块: cc
Triangle
索引
属性(properties)
方法
create
create a new triangleclone
clone a new trianglecopy
copy the values from one triangle to anotherfromPoints
Create a triangle from three pointsset
Set the components of a triangle to the given values
Details
属性(properties)
a
meta | description |
---|---|
类型 | Vec3 |
定义于 | cocos2d/core/geom-utils/triangle.ts:133 |
b
meta | description |
---|---|
类型 | Vec3 |
定义于 | cocos2d/core/geom-utils/triangle.ts:137 |
c
meta | description |
---|---|
类型 | Vec3 |
定义于 | cocos2d/core/geom-utils/triangle.ts:141 |
方法
create
create a new triangle
meta | description |
---|---|
返回 | geomUtils.Triangle |
定义于 | cocos2d/core/geom-utils/triangle.ts:38 |
参数列表
clone
clone a new triangle
meta | description |
---|---|
返回 | geomUtils.Triangle |
定义于 | cocos2d/core/geom-utils/triangle.ts:56 |
参数列表
t
geomUtils.Triangle the source plane
copy
copy the values from one triangle to another
meta | description |
---|---|
返回 | geomUtils.Triangle |
定义于 | cocos2d/core/geom-utils/triangle.ts:70 |
参数列表
out
geomUtils.Triangle the receiving trianglet
geomUtils.Triangle the source triangle
fromPoints
Create a triangle from three points
meta | description |
---|---|
返回 | geomUtils.Triangle |
定义于 | cocos2d/core/geom-utils/triangle.ts:85 |
参数列表
out
geomUtils.Triangle the receiving trianglea
Vec3b
Vec3c
Vec3
set
Set the components of a triangle to the given values
meta | description |
---|---|
返回 | Plane |
定义于 | cocos2d/core/geom-utils/triangle.ts:101 |