sfml.js
    Preparing search index...

    Class Vector2i

    sf::Vector2.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    "[mutableValue]": true

    Accessors

    • get "[vector2Native]"(): NativeValueHandle<"vector2">

      Returns NativeValueHandle<"vector2">

    • get "[vector2Storage]"(): ScalarArray<T>

      Returns ScalarArray<T>

    • get scalarType(): T

      分量使用的标量存储类型。

      Returns T

    • get x(): Scalar<T>

      X 分量;写入按 scalarType 对应的 TypedArray 规则转换。

      Returns Scalar<T>

    • set x(value: Scalar<T>): void

      设置 X 分量。

      Parameters

      • value: Scalar<T>

      Returns void

    • get y(): Scalar<T>

      Y 分量;写入按 scalarType 对应的 TypedArray 规则转换。

      Returns Scalar<T>

    • set y(value: Scalar<T>): void

      设置 Y 分量。

      Parameters

      • value: Scalar<T>

      Returns void

    Methods