IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo struct

TileCoordinates

struct TileCoordinates

Helper struct for managing tile coordinate offsets.

This struct encapsulates corner and split coordinates used in epilogue processing and provides a clean interface for coordinate transformations.

Fields​

  • ​corner (IndexList[Int(2)]):
  • ​split (IndexList[Int(2)]):

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDeletable, Movable, RegisterPassable, TrivialRegisterPassable

Methods​

__init__​

def __init__(corner: IndexList[Int(2)], split: IndexList[Int(2)]) -> Self

Initialize tile coordinates.

Args:

adjust​

def adjust(self, base_coords: IndexList[Int(2)]) -> IndexList[Int(2)]

Add corner and split offsets to base coordinates.

Args:

Returns:

IndexList[Int(2)]: Adjusted coordinates with corner and split offsets applied.