神岛 API 文档 - ArenaPro版
    Preparing search index...

    表示一个三维游戏区域的边界。

    Represents the boundaries of a three-dimensional game area.

    Index

    Constructors

    Properties

    区域的高处顶点。

    The upper vertex of the area.

    区域的低处顶点。

    The lower vertex of the area.

    Methods

    • Parameters

      Returns boolean

      检查当前边界是否包含给定点。

      Checks if the current boundary contains the given point.

      要检查的点。

      The point to check.

      如果当前边界包含该点,则返回true;否则返回false。

      Returns true if the bounds contain the point, otherwise false.

    • Parameters

      Returns boolean

      检查当前边界是否完全包含另一个边界。

      Checks if the current boundary completely contains another boundary.

      要检查的边界对象。

      The bounds object to check.

      如果当前边界完全包含另一个边界,则返回true;否则返回false。

      Returns true if this bounds completely contains the other bounds, otherwise false.

    • Parameters

      Returns GameBounds3

      复制另一个边界对象的属性到当前边界对象。

      Copies the properties of another bounds object to this one.

      要复制的边界对象。

      The bounds object to copy from.

      当前的三维游戏区域边界对象。

      This GameBounds3 object.

    • Parameters

      Returns boolean

      检查当前边界是否与另一个边界相交。

      Checks if the current boundary intersects with another boundary.

      另一个边界对象。

      The other bounds object.

      如果当前边界与另一个边界相交,则返回true;否则返回false。

      Returns true if this bounds intersects with the other bounds, otherwise false.

    • Parameters

      • lox: number
      • loy: number
      • loz: number
      • hix: number
      • hiy: number
      • hiz: number

      Returns GameBounds3

      设置当前边界的低处和高处顶点坐标。

      Sets the coordinates of the lower and upper vertices of the current boundary.

      低处顶点的x坐标。

      The x coordinate of the lower vertex.

      低处顶点的y坐标。

      The y coordinate of the lower vertex.

      低处顶点的z坐标。

      The z coordinate of the lower vertex.

      高处顶点的x坐标。

      The x coordinate of the upper vertex.

      高处顶点的y坐标。

      The y coordinate of the upper vertex.

      高处顶点的z坐标。

      The z coordinate of the upper vertex.

      当前的三维游戏区域边界对象。

      The current GameBounds3 object.

    • Returns string

      返回当前边界对象的字符串表示。

      Returns a string representation of this bounds object.

      当前边界对象的字符串表示。

      A string representation of this bounds object.

    • Parameters

      Returns GameBounds3

      根据多个点创建一个三维游戏区域边界对象。

      Creates a three-dimensional game area boundary object based on multiple points.

      用于定义边界的点数组。

      An array of points used to define the bounds.

      一个新的三维游戏区域边界对象。

      A new GameBounds3 object.