Version:

<static> BuildRight(x, y, width, height)

Builds a right triangle, i.e. one which has a 90-degree angle and two acute angles.

name | type | description |
---|---|---|

x | number |
The X coordinate of the right angle, which will also be the first X coordinate of the constructed Triangle. |

y | number |
The Y coordinate of the right angle, which will also be the first Y coordinate of the constructed Triangle. |

width | number |
The length of the side which is to the left or to the right of the right angle. |

height | number |
The length of the side which is above or below the right angle. |

The constructed right Triangle.

Since: 3.0.0

Possible examples