geomUtils.Triangle
Class
Triangle
Index
Properties
Methods
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 |
---|---|
Type | Vec3 |
Defined in | cocos2d/core/geom-utils/triangle.ts:133 |
b
meta | description |
---|---|
Type | Vec3 |
Defined in | cocos2d/core/geom-utils/triangle.ts:137 |
c
meta | description |
---|---|
Type | Vec3 |
Defined in | cocos2d/core/geom-utils/triangle.ts:141 |
Methods
create
create a new triangle
meta | description |
---|---|
Returns | geomUtils.Triangle |
Defined in | cocos2d/core/geom-utils/triangle.ts:38 |
Parameters
clone
clone a new triangle
meta | description |
---|---|
Returns | geomUtils.Triangle |
Defined in | cocos2d/core/geom-utils/triangle.ts:56 |
Parameters
t
geomUtils.Triangle the source plane
copy
copy the values from one triangle to another
meta | description |
---|---|
Returns | geomUtils.Triangle |
Defined in | cocos2d/core/geom-utils/triangle.ts:70 |
Parameters
out
geomUtils.Triangle the receiving trianglet
geomUtils.Triangle the source triangle
fromPoints
Create a triangle from three points
meta | description |
---|---|
Returns | geomUtils.Triangle |
Defined in | cocos2d/core/geom-utils/triangle.ts:85 |
Parameters
out
geomUtils.Triangle the receiving trianglea
Vec3b
Vec3c
Vec3
set
Set the components of a triangle to the given values
meta | description |
---|---|
Returns | Plane |
Defined in | cocos2d/core/geom-utils/triangle.ts:101 |