Vector2

    A 2D vector using floating point coordinates.

    Vector2.swift:15
    struct Vector2

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

    It uses floating-point coordinates. By default, these floating-point values use 32-bit precision, unlike float which is always 64-bit. If double precision is needed, compile the engine with the option precision=double.

    See Vector2i for its integer counterpart.

    Citizens in SwiftGodot

    Conformances

    Types

    Type members

    Instance members

    Type features

    Instance features