sfml.js
    Preparing search index...

    Class IntRect

    sf::Rect, with integer division in getCenter().

    Hierarchy

    • Rect<"i32">
      • IntRect
    Index

    Constructors

    Properties

    "[mutableValue]": true

    Accessors

    • get "[rectNative]"(): NativeValueHandle<"rect">

      Returns NativeValueHandle<"rect">

    • get "[rectStorage]"(): Int32Array | Float32Array

      Returns Int32Array | Float32Array

    • get scalarType(): T

      矩形分量类型:i32 整数或 f32 浮点数。

      Returns T

    Methods

    • 返回与同类型矩形相交区域的新矩形;无正面积交集时返回 undefined。

      Parameters

      Returns undefined | Rect<"i32">

    • 返回中心点副本;整数矩形的半尺寸使用向零截断的整数除法。

      Returns Vector2<"i32">