Vector2i

    A 2D vector using integer coordinates.

    Vector2i.swift:19
    struct Vector2i

    A 2-element structure that can be used to represent 2D grid coordinates or any other pair of integers.

    It uses integer coordinates and is therefore preferable to Vector2 when exact precision is required. Note that the values are limited to 32 bits, and unlike Vector2 this cannot be configured with an engine build option. Use integer or PackedInt64Array if 64-bit values are needed.

    Citizens in SwiftGodot

    Conformances

    Types

    Type members

    Instance members

    Type features

    Instance features