- Declared in: RT.Coordinates.Tri
Declaration
public static IEnumerable<Tri> LargeUpPointingTriangle(
int sideLength,
int dx = 0,
int dy = 0
)
Summary
Returns a set of tris that make up a large up-pointing triangle structure.
Parameters
int | sideLength |
Number of tri cells per side. |
int | dx |
Offset to shift the x-coordinates by. Default is 0 . |
int | dy |
Offset to shift the y-coordinates by. Default is 0 . |
Exceptions
- System.ArgumentOutOfRangeException
sideLength was zero or negative.
- System.ArgumentException
The values of dx and dy are not both even or both odd.
Remarks
With
dx and
dy equal to
0
, the bottom-left tri has an
x-coordinate of
0
for odd values of
sideLength and
1
for even values, while
the top tri has a y-coordinate of
0
.