text
stringlengths
0
8.81k
Winding order defines the order of vertices for a triangle to be considered front-facing.
Properties:
Name
Type
Description
CLOCKWISE
number
Vertices are in clockwise order.
COUNTER_CLOCKWISE
number
Vertices are in counter-clockwise order.
Methods
barycentricCoordinates(point, p0, p1, p2, result) → Cartesian3|undefined
engine/Source/Core/barycentricCoordinates.js 31
Computes the barycentric coordinates for a point with respect to a triangle.
Name
Type
Description
point
Cartesian2
|
Cartesian3
The point to test.
p0
Cartesian2
|
Cartesian3
The first point of the triangle, corresponding to the barycentric x-axis.
p1
Cartesian2
|
Cartesian3