Options
All
  • Public
  • Public/Protected
  • All
Menu

表示一个三维平面中的 AABB 盒子

+---------+ /| /| / | / | +---------+ | | +------|--+ | / | / |/ |/ +---------+

Class representing a bounding box in Three-dimensional coordinate system

Hierarchy

  • Box3

Index

Constructors

constructor

Properties

max

max: Vector3 = ...

Box3 的最大顶点

min

min: Vector3 = ...

Box3 的最小顶点

Accessors

center

points

  • Box3 的 8 个顶点

    如果坐标系方向如下:

    Y Z | / | / |/ +---------- X

    则顶点顺序如下:

    7---------6 /| /| / | / | 3---------2 | | 4------|--5 | / | / |/ |/ 0---------1

    Returns Vector3[]

size

Methods

checkValid

  • checkValid(): boolean

setMax

setMin

Static createByGeometry

  • 根据几何信息计算一个 Box3

    Calculate the Box3 base on geometric information

    Parameters

    Returns Box3

    A Box3

Static createByPoints

  • 计算包围所有点的最小 Box3

    Calculate the smallest Box3 surrounding all points

    Parameters

    Returns Box3

    A Box3

Legend

  • Constructor
  • Property
  • Method
  • Static property
  • Static method
  • Property
  • Private property

Generated using TypeDoc