Version: 2021.1
言語: 日本語

BoundsInt

struct in UnityEngine

マニュアルに切り替える

説明

Represents an axis aligned bounding box with all values as integers.

An axis-aligned bounding box, or AABB for short, is a box aligned with coordinate axes and fully enclosing some object. As the box is never rotated with respect to the axes, it can be defined by min and max points.

変数

allPositionsWithinA BoundsInt.PositionCollection that contains all positions within the BoundsInt.
centerバウンディングボックスの中心座標
maxThe maximal point of the box.
minThe minimal point of the box.
positionThe position of the bounding box.
sizeThe total size of the box.
xX value of the minimal point of the box.
xMaxThe maximal x point of the box.
xMinThe minimal x point of the box.
yY value of the minimal point of the box.
yMaxThe maximal y point of the box.
yMinThe minimal y point of the box.
zZ value of the minimal point of the box.
zMaxThe maximal z point of the box.
zMinThe minimal z point of the box.

Public 関数

ClampToBoundsClamps the position and size of this bounding box to the given bounds.
Contains設定した point が、バウンディングボックスに含まれているか確認します
SetMinMaxボックスの最小値 min と最大値 max を設定します。
ToStringReturns a formatted string for the bounds.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961