Class BoundingBox2

2次元空間上のバウンディングボックスクラス

Constructors

  • コンストラクタ

    Parameters

    • min: Vector2

      範囲の最小の座標

    • max: Vector2

      範囲の最大の座標

    Returns BoundingBox2

Properties

max: Vector2
min: Vector2

Methods

  • 面積を返す

    Returns number

    面積

  • 指定したバウンディングボックスで拡張する(破壊的)

    Parameters

    Returns void

  • 指定したバウンディングボックスが包含されるか判定

    Parameters

    Returns boolean

    指定したバウンディングボックスが包含されるか

  • 指定した点が含まれているか返す

    Parameters

    • point: Vector2

      判定したい点

    Returns boolean

    指定した点が含まれているか

  • 指定したバウンディングボックスと交差するか判定

    Parameters

    Returns boolean