API 参考
正在准备搜索索引…

FloatRect

sf::Rect,与成员视图共享 16 字节原生存储。

继承关系

层级

  • Rect<"f32">
    • FloatRect
源码与继承
成员目录11

构造函数

属性

访问器

方法

构造函数

访问器

  • get scalarType(): T

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

    返回值

    T
    源码与继承

方法

  • 返回值

    Rect<"f32">
    源码与继承
  • 返回与同类型矩形相交区域的新矩形;无正面积交集时返回 undefined。

    参数

    rectangle
    ReadonlyValue<Rect<"f32">>

    返回值

    undefined | Rect<"f32">
    源码与继承
  • 返回中心点副本;整数矩形的半尺寸使用向零截断的整数除法。

    返回值

    Vector2<"f32">
    源码与继承

符号成员

"[mutableValue]": true
源码与继承
  • get "[rectNative]"(): NativeValueHandle<"rect">

    返回值

    NativeValueHandle<"rect">
    源码与继承
  • get "[rectStorage]"(): Int32Array | Float32Array

    返回值

    Int32Array | Float32Array
    源码与继承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0