geomUtils.Triangle 类型
Triangle
索引
属性(properties)
方法
createcreate a new trianglecloneclone a new trianglecopycopy the values from one triangle to anotherfromPointsCreate a triangle from three pointssetSet 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 |
参数列表
tgeomUtils.Triangle the source plane
copy
copy the values from one triangle to another
| meta | description |
|---|---|
| 返回 | geomUtils.Triangle |
| 定义于 | cocos2d/core/geom-utils/triangle.ts:70 |
参数列表
outgeomUtils.Triangle the receiving triangletgeomUtils.Triangle the source triangle
fromPoints
Create a triangle from three points
| meta | description |
|---|---|
| 返回 | geomUtils.Triangle |
| 定义于 | cocos2d/core/geom-utils/triangle.ts:85 |
参数列表
outgeomUtils.Triangle the receiving triangleaVec3bVec3cVec3
set
Set the components of a triangle to the given values
| meta | description |
|---|---|
| 返回 | Plane |
| 定义于 | cocos2d/core/geom-utils/triangle.ts:101 |