Fill a triangle with the given points.
name | type | description |
---|---|---|
x0 | number |
The x coordinate of the first point. |
y0 | number |
The y coordinate of the first point. |
x1 | number |
The x coordinate of the second point. |
y1 | number |
The y coordinate of the second point. |
x2 | number |
The x coordinate of the third point. |
y2 | number |
The y coordinate of the third point. |
This Game Object.