Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<Tri> LargeDownPointingTriangle(int, int, int)

  • Declared in: RT.Coordinates.Tri

Declaration

public static IEnumerable<Tri> LargeDownPointingTriangle(
    int sideLength,
    int dx = 0,
    int dy = 0
)

Summary

Returns a set of tris that make up a large down-pointing triangle structure.

Parameters

intsideLength Number of tri cells per side.
intdx Offset to shift the x-coordinates by. Default is 0.
intdy 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 top-left tri has coordinates (1, 0).